Modifier and Type | Field and Description |
---|---|
static byte[] |
BDDP_MULTICAST |
static short |
ETHERTYPE_VLAN |
static byte[] |
LLDP_MULTICAST |
static byte[] |
LLDP_NICIRA |
static byte[] |
ONLAB_OUI |
static String |
OVX_NAME |
parent, payload
Constructor and Description |
---|
OVXLLDP()
Instantiates a new OVX LDDP message.
|
Modifier and Type | Method and Description |
---|---|
static boolean |
isLLDP(byte[] packet)
Checks if LLDP packet has correct size, LLDP multicast address, and
ethertype.
|
static boolean |
isOVXLLDP(byte[] packet)
Checks if packet has size of OVX-generated LLDP, and correctness of two
organizationally specific TLVs that use ON.Lab's OUI.
|
static DPIDandPort |
parseLLDP(byte[] packet)
Extracts dpid and port from OVX-generated LLDP packet.
|
byte[] |
serialize()
Serializes full LLDP packet to byte array.
|
void |
setPort(Port port)
Sets port in LLDP packet.
|
void |
setSwitch(Switch sw)
Sets switch DPID in LLDP packet.
|
deserialize, equals, getChassisId, getOptionalTLVList, getPortId, getTtl, hashCode, setChassisId, setOptionalTLVList, setPortId, setTtl
clone, getParent, getPayload, resetChecksum, setParent, setPayload
public static final byte[] ONLAB_OUI
public static final String OVX_NAME
public static final byte[] LLDP_NICIRA
public static final byte[] LLDP_MULTICAST
public static final byte[] BDDP_MULTICAST
public static final short ETHERTYPE_VLAN
public void setSwitch(Switch sw)
sw
- the switch instancepublic void setPort(Port port)
port
- the port instancepublic byte[] serialize()
public static boolean isLLDP(byte[] packet)
packet
- public static boolean isOVXLLDP(byte[] packet)
packet
- public static DPIDandPort parseLLDP(byte[] packet)
packet
- Copyright © 2015. All rights reserved.