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

Add RARP ethertype

parent be8acc67
No related branches found
No related tags found
No related merge requests found
......@@ -32,6 +32,7 @@ import org.openflow.util.HexString;
public class Ethernet extends BasePacket {
private static String HEXES = "0123456789ABCDEF";
public static final short TYPE_ARP = 0x0806;
public static final short TYPE_RARP = (short) 0x8035;
public static final short TYPE_IPv4 = 0x0800;
public static final short TYPE_LLDP = (short) 0x88cc;
public static final short TYPE_BSN = (short) 0x8942;
......@@ -43,6 +44,7 @@ public class Ethernet extends BasePacket {
static {
etherTypeClassMap = new HashMap<Short, Class<? extends IPacket>>();
etherTypeClassMap.put(TYPE_ARP, ARP.class);
etherTypeClassMap.put(TYPE_RARP, ARP.class);
etherTypeClassMap.put(TYPE_IPv4, IPv4.class);
etherTypeClassMap.put(TYPE_LLDP, LLDP.class);
etherTypeClassMap.put(TYPE_BDDP, BDDP.class);
......
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