public class RIPV2AuthEntry extends BasePacket
| Modifier and Type | Field and Description |
|---|---|
protected short |
addressFamilyId |
protected byte |
authLen |
protected byte |
keyId |
protected short |
offset |
protected int |
sequence |
protected short |
type |
parent, payload| Constructor and Description |
|---|
RIPV2AuthEntry() |
| Modifier and Type | Method and Description |
|---|---|
static Deserializer<RIPV2AuthEntry> |
deserializer()
Deserializer function for RIPv2 entry.
|
boolean |
equals(java.lang.Object obj) |
short |
getAddressFamilyId() |
byte |
getAuthLen() |
byte |
getKeyId() |
short |
getOffset() |
int |
getSequence() |
short |
getType() |
int |
hashCode() |
byte[] |
serialize()
Sets all payloads parent packet if applicable, then serializes this
packet and all payloads.
|
RIPV2AuthEntry |
setAddressFamilyId(short addressFamilyIdentifier) |
RIPV2AuthEntry |
setAuthLen(byte authlen) |
RIPV2AuthEntry |
setKeyId(byte keyId) |
RIPV2AuthEntry |
setOffset(short offset) |
RIPV2AuthEntry |
setSequenceNumber(int sequencenumber) |
RIPV2AuthEntry |
setType(short type) |
java.lang.String |
toString() |
clone, getParent, getPayload, resetChecksum, setParent, setPayloadprotected short addressFamilyId
protected short type
protected short offset
protected byte keyId
protected byte authLen
protected int sequence
public byte[] serialize()
IPacketpublic static Deserializer<RIPV2AuthEntry> deserializer()
public int hashCode()
hashCode in class BasePacketpublic boolean equals(java.lang.Object obj)
equals in class BasePacketpublic short getAddressFamilyId()
public RIPV2AuthEntry setAddressFamilyId(short addressFamilyIdentifier)
addressFamilyIdentifier - the address family identifier to setpublic short getType()
public RIPV2AuthEntry setType(short type)
type - the authentication type to setpublic short getOffset()
public RIPV2AuthEntry setOffset(short offset)
offset - the offset of authentication data to setpublic byte getKeyId()
public RIPV2AuthEntry setKeyId(byte keyId)
keyId - The key id to setpublic byte getAuthLen()
public RIPV2AuthEntry setAuthLen(byte authlen)
authlen - the length of the authentication data to setpublic int getSequence()
public RIPV2AuthEntry setSequenceNumber(int sequencenumber)
sequencenumber - sequence number to setpublic java.lang.String toString()
toString in class java.lang.Object