HIGUCHI Yuta
Committed by Gerrit Code Review

Fix byte[] comparison using equals

Change-Id: I1185e16f540d69870d7762d8a8ec1cd8871e2c2b
......@@ -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 @@ public class TCP extends BasePacket {
&& 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));
}
/**
......