Fix byte[] comparison using equals
Change-Id: I1185e16f540d69870d7762d8a8ec1cd8871e2c2b
diff --git a/utils/misc/src/main/java/org/onlab/packet/TCP.java b/utils/misc/src/main/java/org/onlab/packet/TCP.java
index 8d45079..e089f27 100644
--- a/utils/misc/src/main/java/org/onlab/packet/TCP.java
+++ b/utils/misc/src/main/java/org/onlab/packet/TCP.java
@@ -19,6 +19,7 @@
package org.onlab.packet;
import java.nio.ByteBuffer;
+import java.util.Arrays;
import static org.onlab.packet.PacketUtils.*;
@@ -420,7 +421,7 @@
&& this.flags == other.flags
&& this.windowSize == other.windowSize
&& this.urgentPointer == other.urgentPointer
- && (this.dataOffset == 5 || this.options.equals(other.options));
+ && (this.dataOffset == 5 || Arrays.equals(this.options, other.options));
}
/**