Modifier and Type | Field and Description |
---|---|
static byte |
LENGTH |
HEADER_LENGTH
parent, payload
Constructor and Description |
---|
LacpBaseTlv() |
Modifier and Type | Method and Description |
---|---|
static Deserializer<LacpBaseTlv> |
deserializer()
Deserializer function for LacpBaseTlv packets.
|
boolean |
equals(Object obj) |
short |
getKey()
Gets key.
|
short |
getPort()
Gets port.
|
short |
getPortPriority()
Gets port priority.
|
LacpState |
getState()
Gets state.
|
MacAddress |
getSystemMac()
Gets system MAC address.
|
short |
getSystemPriority()
Gets system priority.
|
int |
hashCode() |
byte[] |
serialize()
Sets all payloads parent packet if applicable, then serializes this
packet and all payloads.
|
LacpBaseTlv |
setKey(short key)
Sets key.
|
LacpBaseTlv |
setPort(short port)
Sets port.
|
LacpBaseTlv |
setPortPriority(short portPriority)
Sets port priority.
|
LacpBaseTlv |
setState(byte state)
Sets state.
|
LacpBaseTlv |
setSystemMac(MacAddress systemMac)
Sets system MAC address.
|
LacpBaseTlv |
setSystemPriority(short systemPriority)
Sets system priority.
|
String |
toString() |
clone, getParent, getPayload, resetChecksum, setParent, setPayload
public static final byte LENGTH
public short getSystemPriority()
public LacpBaseTlv setSystemPriority(short systemPriority)
systemPriority
- system prioritypublic MacAddress getSystemMac()
public LacpBaseTlv setSystemMac(MacAddress systemMac)
systemMac
- system MACpublic short getKey()
public LacpBaseTlv setKey(short key)
key
- keypublic short getPortPriority()
public LacpBaseTlv setPortPriority(short portPriority)
portPriority
- port prioritypublic short getPort()
public LacpBaseTlv setPort(short port)
port
- portpublic LacpState getState()
public LacpBaseTlv setState(byte state)
state
- statepublic static Deserializer<LacpBaseTlv> deserializer()
public byte[] serialize()
IPacket
public boolean equals(Object obj)
equals
in class BasePacket
public int hashCode()
hashCode
in class BasePacket