Skip to content
Snippets Groups Projects
Commit d4f4d325 authored by Shudong Zhou's avatar Shudong Zhou
Browse files

Use officially assigned BSN ethertype

parent 7e07b350
No related branches found
No related tags found
No related merge requests found
......@@ -34,7 +34,7 @@ public class Ethernet extends BasePacket {
public static final short TYPE_ARP = 0x0806;
public static final short TYPE_IPv4 = 0x0800;
public static final short TYPE_LLDP = (short) 0x88cc;
public static final short TYPE_BSN = (short) 0x8950; // Not officially assigned
public static final short TYPE_BSN = (short) 0x8942;
public static final short VLAN_UNTAGGED = (short)0xffff;
public static final short TYPE_BDDP = (short) 0x8999;
public static final short DATALAYER_ADDRESS_LENGTH = 6; // bytes
......
......@@ -36,7 +36,7 @@ public class BSNTest {
protected byte[] probePkt = {
0x00, 0x00, 0x00, 0x00, 0x00, 0x01, // src mac
0x00, 0x00, 0x00, 0x00, 0x00, 0x04, // dst mac
(byte) 0x89, 0x50, // BSN type
(byte) 0x89, 0x42, // BSN type
0x20, 0x00, 0x06, 0x04, 0x00, 0x01, 0x00, 0x00, // BSN header
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // controller id
0x00, 0x00, 0x00, 0x03, // sequence id
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment