Skip to content

Commit e5cb5d5

Browse files
committed
improved
1 parent 32149dc commit e5cb5d5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/test/java/com/igormaznitsa/jbbp/it/NetPacketParsingTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ public void testParsingTCPFrameInsideNetworkFrame() throws Exception {
9191
final int etherTypeOrLength = parsedEthernetHeader.findFieldForNameAndType("EtherTypeOrLength", JBBPFieldUShort.class).getAsInt();
9292
assertEquals("Ethernet type or length", 0x800, etherTypeOrLength);
9393

94-
if (etherTypeOrLength>=1536) {
94+
if (etherTypeOrLength>1500) {
9595
// list of protocols http://standards-oui.ieee.org/ethertype/eth.txt
9696
System.out.println("Ethernet type is : 0x"+Integer.toHexString(etherTypeOrLength).toUpperCase());
9797
} else {

0 commit comments

Comments
 (0)