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 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(Object obj)  | 
byte | 
getCmdType()  | 
short | 
getReserved()  | 
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(List<RIPngEntry> entries)  | 
RIPng | 
setVersion(byte version)  | 
String | 
toString()  | 
clone, getParent, getPayload, resetChecksum, setParent, setPayloadpublic static final int MIN_HEADER_LENGTH
protected byte cmdType
protected byte version
protected short reserved
protected 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 List<RIPngEntry> getRtEntries()
public RIPng setRtEntries(List<RIPngEntry> entries)
entries - the route entries to setpublic byte[] serialize()
IPacketpublic static Deserializer<RIPng> deserializer()
public int hashCode()
hashCode in class BasePacketpublic boolean equals(Object obj)
equals in class BasePacket