Package org.onlab.packet
Class RIPng
- java.lang.Object
 - 
- org.onlab.packet.BasePacket
 - 
- org.onlab.packet.RIPng
 
 
 
- 
- All Implemented Interfaces:
 IPacket
public class RIPng extends BasePacket
Representation of an RIPng Packet. 
- 
- 
Nested Class Summary
Nested Classes Modifier and Type Class Description static classRIPng.CmdType 
- 
Field Summary
Fields Modifier and Type Field Description protected bytecmdTypestatic intMIN_HEADER_LENGTHRouting Information Protocol Next Generation packet.protected shortreservedprotected List<RIPngEntry>rtEntriesprotected byteversion- 
Fields inherited from class org.onlab.packet.BasePacket
parent, payload 
 - 
 
- 
Constructor Summary
Constructors Constructor Description RIPng() 
- 
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Deserializer<RIPng>deserializer()Deserializer function for RIPng packets.booleanequals(Object obj)bytegetCmdType()shortgetReserved()List<RIPngEntry>getRtEntries()bytegetVersion()inthashCode()byte[]serialize()Sets all payloads parent packet if applicable, then serializes this packet and all payloads.RIPngsetCmdType(byte cmdType)RIPngsetReserved(short reserved)RIPngsetRtEntries(List<RIPngEntry> entries)RIPngsetVersion(byte version)StringtoString()- 
Methods inherited from class org.onlab.packet.BasePacket
clone, getParent, getPayload, resetChecksum, setParent, setPayload 
 - 
 
 - 
 
- 
- 
Field Detail
- 
MIN_HEADER_LENGTH
public static final int MIN_HEADER_LENGTH
Routing Information Protocol Next Generation packet. ------------------------------------------ |cmdType (1) | version(1) | ------------------------------------------ |reserved (2) | ------------------------------------------ | route entries (n*20) | ------------------------------------------- See Also:
 - Constant Field Values
 
 
- 
cmdType
protected byte cmdType
 
- 
version
protected byte version
 
- 
reserved
protected short reserved
 
- 
rtEntries
protected List<RIPngEntry> rtEntries
 
 - 
 
- 
Method Detail
- 
getCmdType
public byte getCmdType()
- Returns:
 - the cmdType
 
 
- 
setCmdType
public RIPng setCmdType(byte cmdType)
- Parameters:
 cmdType- the cmdType to set- Returns:
 - this
 
 
- 
getVersion
public byte getVersion()
- Returns:
 - the version
 
 
- 
setVersion
public RIPng setVersion(byte version)
- Parameters:
 version- the version to set- Returns:
 - this
 
 
- 
getReserved
public short getReserved()
- Returns:
 - the reserved short
 
 
- 
setReserved
public RIPng setReserved(short reserved)
- Parameters:
 reserved- the reserved short to set- Returns:
 - this
 
 
- 
getRtEntries
public List<RIPngEntry> getRtEntries()
- Returns:
 - the route entries
 
 
- 
setRtEntries
public RIPng setRtEntries(List<RIPngEntry> entries)
- Parameters:
 entries- the route entries to set- Returns:
 - this
 
 
- 
serialize
public byte[] serialize()
Description copied from interface:IPacketSets all payloads parent packet if applicable, then serializes this packet and all payloads.- Returns:
 - a byte[] containing this packet and payloads
 
 
- 
deserializer
public static Deserializer<RIPng> deserializer()
Deserializer function for RIPng packets.- Returns:
 - deserializer function
 
 
- 
hashCode
public int hashCode()
- Overrides:
 hashCodein classBasePacket
 
- 
equals
public boolean equals(Object obj)
- Overrides:
 equalsin classBasePacket
 
 - 
 
 -