public class RIPng extends BasePacket
Modifier and Type | Class and Description |
---|---|
static class |
RIPng.CmdType |
Modifier and Type | Field and Description |
---|---|
protected byte |
cmdType |
static int |
MIN_HEADER_LENGTH
Routing Information Protocol Next Generation packet.
|
protected short |
reserved |
protected java.util.List<RIPngEntry> |
rtEntries |
protected byte |
version |
parent, payload
Constructor and Description |
---|
RIPng() |
Modifier and Type | Method and Description |
---|---|
static Deserializer<RIPng> |
deserializer()
Deserializer function for RIPng packets.
|
boolean |
equals(java.lang.Object obj) |
byte |
getCmdType() |
short |
getReserved() |
java.util.List<RIPngEntry> |
getRtEntries() |
byte |
getVersion() |
int |
hashCode() |
byte[] |
serialize()
Sets all payloads parent packet if applicable, then serializes this
packet and all payloads.
|
RIPng |
setCmdType(byte cmdType) |
RIPng |
setReserved(short reserved) |
RIPng |
setRtEntries(java.util.List<RIPngEntry> entries) |
RIPng |
setVersion(byte version) |
java.lang.String |
toString() |
clone, getParent, getPayload, resetChecksum, setParent, setPayload
public static final int MIN_HEADER_LENGTH
protected byte cmdType
protected byte version
protected short reserved
protected java.util.List<RIPngEntry> rtEntries
public byte getCmdType()
public RIPng setCmdType(byte cmdType)
cmdType
- the cmdType to setpublic byte getVersion()
public RIPng setVersion(byte version)
version
- the version to setpublic short getReserved()
public RIPng setReserved(short reserved)
reserved
- the reserved short to setpublic java.util.List<RIPngEntry> getRtEntries()
public RIPng setRtEntries(java.util.List<RIPngEntry> entries)
entries
- the route entries to setpublic byte[] serialize()
IPacket
public static Deserializer<RIPng> deserializer()
public int hashCode()
hashCode
in class BasePacket
public boolean equals(java.lang.Object obj)
equals
in class BasePacket
public java.lang.String toString()
toString
in class java.lang.Object