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 java.util.List<LLDPTLV> |
optionalTLVList |
static short |
PORT_TLV_SIZE |
static byte |
PORT_TLV_SUBTYPE |
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 |
---|---|
static Deserializer<LLDP> |
deserializer()
Deserializer function for LLDP packets.
|
boolean |
equals(java.lang.Object obj) |
LLDPTLV |
getChassisId() |
java.util.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(java.util.List<LLDPTLV> optionalTLVList) |
LLDP |
setPortId(LLDPTLV portId) |
LLDP |
setTtl(LLDPTLV ttl) |
java.lang.String |
toString() |
clone, getParent, getPayload, resetChecksum, setParent, setPayload
public 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_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 java.util.List<LLDPTLV> optionalTLVList
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 java.util.List<LLDPTLV> getOptionalTLVList()
public LLDP setOptionalTLVList(java.util.List<LLDPTLV> optionalTLVList)
optionalTLVList
- the optionalTLVList to setpublic byte[] serialize()
IPacket
public int hashCode()
hashCode
in class BasePacket
public boolean equals(java.lang.Object obj)
equals
in class BasePacket
public static Deserializer<LLDP> deserializer()
public java.lang.String toString()
toString
in class java.lang.Object