public class LLDP extends BasePacket
| Modifier and Type | Field and Description |
|---|---|
protected LLDPTLV |
chassisId |
protected short |
ethType |
protected 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(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) |
clone, getParent, getPayload, resetChecksum, setParent, setPayloadprotected 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 byte[] serialize()
IPacketpublic IPacket deserialize(byte[] data, int offset, int length)
IPacketdata - bytes to deserializeoffset - offset to start deserializing fromlength - length of the data to deserializepublic int hashCode()
hashCode in class BasePacketpublic boolean equals(Object obj)
equals in class BasePacketCopyright © 2015. All rights reserved.