public class Lacp extends BasePacket
Modifier and Type | Field and Description |
---|---|
static int |
HEADER_LENGTH |
static byte |
TYPE_ACTOR |
static byte |
TYPE_COLLECTOR |
static byte |
TYPE_PARTNER |
static byte |
TYPE_TERMINATOR |
parent, payload
Constructor and Description |
---|
Lacp() |
Modifier and Type | Method and Description |
---|---|
static Deserializer<Lacp> |
deserializer()
Deserializer function for LACP packets.
|
boolean |
equals(Object obj) |
byte |
getLacpVersion()
Gets LACP version.
|
Map<Byte,LacpTlv> |
getTlv()
Gets LACP TLV.
|
int |
hashCode() |
byte[] |
serialize()
Sets all payloads parent packet if applicable, then serializes this
packet and all payloads.
|
Lacp |
setLacpVersion(byte lacpVersion)
Sets LACP version.
|
Lacp |
setTlv(Map<Byte,LacpTlv> tlv)
Sets LACP TLV.
|
String |
toString() |
clone, getParent, getPayload, resetChecksum, setParent, setPayload
public static final int HEADER_LENGTH
public static final byte TYPE_ACTOR
public static final byte TYPE_PARTNER
public static final byte TYPE_COLLECTOR
public static final byte TYPE_TERMINATOR
public byte getLacpVersion()
public Lacp setLacpVersion(byte lacpVersion)
lacpVersion
- LACP versionpublic Lacp setTlv(Map<Byte,LacpTlv> tlv)
tlv
- LACP TLVpublic static Deserializer<Lacp> deserializer()
public byte[] serialize()
IPacket
public int hashCode()
hashCode
in class BasePacket
public boolean equals(Object obj)
equals
in class BasePacket