public class LLDP extends BasePacket
| Modifier and Type | Field and Description | 
|---|---|
static short | 
CHASSIS_TLV_SIZE  | 
static byte | 
CHASSIS_TLV_SUBTYPE  | 
static byte | 
CHASSIS_TLV_TYPE  | 
protected LLDPTLV | 
chassisId  | 
protected short | 
ethType  | 
protected List<LLDPTLV> | 
optionalTLVList  | 
static byte | 
PORT_TLV_COMPONENT_SUBTYPE  | 
static byte | 
PORT_TLV_INTERFACE_NAME_SUBTYPE  | 
static short | 
PORT_TLV_SIZE  | 
static byte | 
PORT_TLV_TYPE  | 
protected LLDPTLV | 
portId  | 
protected LLDPTLV | 
ttl  | 
static short | 
TTL_TLV_SIZE  | 
static byte | 
TTL_TLV_TYPE  | 
parent, payload| Constructor and Description | 
|---|
LLDP()  | 
| Modifier and Type | Method and Description | 
|---|---|
LLDP | 
addOptionalTLV(LLDPTLV lldptlv)
Adds additional TLV to optionalTLVList. 
 | 
static Deserializer<LLDP> | 
deserializer()
Deserializer function for LLDP packets. 
 | 
boolean | 
equals(Object obj)  | 
LLDPTLV | 
getChassisId()  | 
List<LLDPTLV> | 
getOptionalTLVList()  | 
LLDPTLV | 
getPortId()  | 
LLDPTLV | 
getTtl()  | 
int | 
hashCode()  | 
byte[] | 
serialize()
Sets all payloads parent packet if applicable, then serializes this
 packet and all payloads. 
 | 
LLDP | 
setChassisId(LLDPTLV chassis)  | 
LLDP | 
setOptionalTLVList(List<LLDPTLV> optionalTLVList)  | 
LLDP | 
setPortId(LLDPTLV portId)  | 
LLDP | 
setTtl(LLDPTLV ttl)  | 
String | 
toString()  | 
clone, getParent, getPayload, resetChecksum, setParent, setPayloadpublic static final byte CHASSIS_TLV_TYPE
public static final short CHASSIS_TLV_SIZE
public static final byte CHASSIS_TLV_SUBTYPE
public static final byte PORT_TLV_TYPE
public static final short PORT_TLV_SIZE
public static final byte PORT_TLV_COMPONENT_SUBTYPE
public static final byte PORT_TLV_INTERFACE_NAME_SUBTYPE
public static final byte TTL_TLV_TYPE
public static final short TTL_TLV_SIZE
protected LLDPTLV chassisId
protected LLDPTLV portId
protected LLDPTLV ttl
protected short ethType
public LLDPTLV getChassisId()
public LLDP setChassisId(LLDPTLV chassis)
chassis - the chassisId to setpublic LLDPTLV getPortId()
public LLDP setPortId(LLDPTLV portId)
portId - the portId to setpublic LLDPTLV getTtl()
public LLDP setOptionalTLVList(List<LLDPTLV> optionalTLVList)
optionalTLVList - the optionalTLVList to setpublic LLDP addOptionalTLV(LLDPTLV lldptlv)
lldptlv - the optional TLV to be addedpublic byte[] serialize()
IPacketpublic int hashCode()
hashCode in class BasePacketpublic boolean equals(Object obj)
equals in class BasePacketpublic static Deserializer<LLDP> deserializer()