public class LLDP extends BasePacket
| Modifier and Type | Field and Description |
|---|---|
protected LLDPTLV |
chassisId |
protected short |
ethType |
protected java.util.List<LLDPTLV> |
optionalTLVList |
protected LLDPTLV |
portId |
protected LLDPTLV |
ttl |
parent, payload| Constructor and Description |
|---|
LLDP() |
| Modifier and Type | Method and Description |
|---|---|
IPacket |
deserialize(byte[] data,
int offset,
int length)
Deserializes this packet layer and all possible payloads
|
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 chassisId) |
LLDP |
setOptionalTLVList(java.util.List<LLDPTLV> optionalTLVList) |
LLDP |
setPortId(LLDPTLV portId) |
LLDP |
setTtl(LLDPTLV ttl) |
clone, getParent, getPayload, resetChecksum, setParent, setPayloadprotected LLDPTLV chassisId
protected LLDPTLV portId
protected LLDPTLV ttl
protected java.util.List<LLDPTLV> optionalTLVList
protected short ethType
public LLDPTLV getChassisId()
public LLDP setChassisId(LLDPTLV chassisId)
chassisId - the chassisId to setpublic LLDPTLV getPortId()
public LLDPTLV getTtl()
public java.util.List<LLDPTLV> getOptionalTLVList()
public LLDP setOptionalTLVList(java.util.List<LLDPTLV> optionalTLVList)
optionalTLVList - the optionalTLVList to setpublic byte[] serialize()
IPacketpublic IPacket deserialize(byte[] data, int offset, int length)
IPacketoffset - offset to start deserializing fromlength - length of the data to deserializepublic int hashCode()
hashCode in class BasePacketpublic boolean equals(java.lang.Object obj)
equals in class BasePacket