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(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) |
String |
toString() |
clone, getParent, getPayload, resetChecksum, setParent, setPayload
protected short addressFamilyId
protected short type
protected short offset
protected byte keyId
protected byte authLen
protected int sequence
public byte[] serialize()
IPacket
public static Deserializer<RIPV2AuthEntry> deserializer()
public int hashCode()
hashCode
in class BasePacket
public boolean equals(Object obj)
equals
in class BasePacket
public 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 set