public class VXLAN extends BasePacket
| Modifier and Type | Field and Description |
|---|---|
protected byte |
flags |
protected byte[] |
rsvd1 |
protected byte |
rsvd2 |
protected byte[] |
vni |
parent, payload| Constructor and Description |
|---|
VXLAN() |
| Modifier and Type | Method and Description |
|---|---|
static Deserializer<VXLAN> |
deserializer()
Returns the deserializer closure (used by upper layer deserializer).
|
boolean |
equals(java.lang.Object obj) |
byte |
getFlag()
Return flags.
|
int |
getVni()
Returns VNI(VXLAN Network Identifier).
|
int |
hashCode() |
byte[] |
serialize()
Serializes the packet.
|
VXLAN |
setFlag(byte flags)
Set flags.
|
VXLAN |
setVni(int vni)
Set VNI.
|
java.lang.String |
toString() |
clone, getParent, getPayload, resetChecksum, setParent, setPayloadprotected byte flags
protected byte[] rsvd1
protected byte[] vni
protected byte rsvd2
public byte[] serialize()
public int getVni()
public VXLAN setVni(int vni)
vni - the VNI to set( 24 bits )public byte getFlag()
public VXLAN setFlag(byte flags)
flags - the flags to set( 8 bits )public int hashCode()
hashCode in class BasePacketpublic boolean equals(java.lang.Object obj)
equals in class BasePacketpublic static Deserializer<VXLAN> deserializer()
public java.lang.String toString()
toString in class java.lang.Object