Package org.onlab.packet.lacp
Class LacpBaseTlv
- java.lang.Object
-
- org.onlab.packet.BasePacket
-
- org.onlab.packet.lacp.LacpTlv
-
- org.onlab.packet.lacp.LacpBaseTlv
-
-
Field Summary
Fields Modifier and Type Field Description static byte
LENGTH
-
Fields inherited from class org.onlab.packet.lacp.LacpTlv
HEADER_LENGTH
-
Fields inherited from class org.onlab.packet.BasePacket
parent, payload
-
-
Constructor Summary
Constructors Constructor Description LacpBaseTlv()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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()
-
Methods inherited from class org.onlab.packet.BasePacket
clone, getParent, getPayload, resetChecksum, setParent, setPayload
-
-
-
-
Field Detail
-
LENGTH
public static final byte LENGTH
- See Also:
- Constant Field Values
-
-
Method Detail
-
getSystemPriority
public short getSystemPriority()
Gets system priority.- Returns:
- system priority
-
setSystemPriority
public LacpBaseTlv setSystemPriority(short systemPriority)
Sets system priority.- Parameters:
systemPriority
- system priority- Returns:
- this
-
getSystemMac
public MacAddress getSystemMac()
Gets system MAC address.- Returns:
- system MAC address
-
setSystemMac
public LacpBaseTlv setSystemMac(MacAddress systemMac)
Sets system MAC address.- Parameters:
systemMac
- system MAC- Returns:
- this
-
getKey
public short getKey()
Gets key.- Returns:
- key
-
setKey
public LacpBaseTlv setKey(short key)
Sets key.- Parameters:
key
- key- Returns:
- this
-
getPortPriority
public short getPortPriority()
Gets port priority.- Returns:
- port priority
-
setPortPriority
public LacpBaseTlv setPortPriority(short portPriority)
Sets port priority.- Parameters:
portPriority
- port priority- Returns:
- this
-
getPort
public short getPort()
Gets port.- Returns:
- port
-
setPort
public LacpBaseTlv setPort(short port)
Sets port.- Parameters:
port
- port- Returns:
- this
-
getState
public LacpState getState()
Gets state.- Returns:
- state
-
setState
public LacpBaseTlv setState(byte state)
Sets state.- Parameters:
state
- state- Returns:
- this
-
deserializer
public static Deserializer<LacpBaseTlv> deserializer()
Deserializer function for LacpBaseTlv packets.- Returns:
- deserializer function
-
serialize
public byte[] serialize()
Description copied from interface:IPacket
Sets all payloads parent packet if applicable, then serializes this packet and all payloads.- Returns:
- a byte[] containing this packet and payloads
-
equals
public boolean equals(Object obj)
- Overrides:
equals
in classBasePacket
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classBasePacket
-
-