org.jnetpcap.protocol.network
Class Rip1

java.lang.Object
  extended by org.jnetpcap.nio.JMemory
      extended by org.jnetpcap.nio.JBuffer
          extended by org.jnetpcap.packet.JHeader
              extended by org.jnetpcap.protocol.network.Rip
                  extended by org.jnetpcap.protocol.network.Rip1
All Implemented Interfaces:
JPayloadAccessor
Direct Known Subclasses:
Rip2

public class Rip1
extends Rip

Routing Information Protocol version 1 (RIP). This class provides access method for reading every field in RIP version 1 protocol. The routing table returned only defines accessor methods for reading version 1 fields.

Author:
Mark Bednarczyk, Sly Technologies, Inc.
See Also:
Rip2

Nested Class Summary
static class Rip1.EntryV1
          Rip1 routing table entry definition.
 
Nested classes/interfaces inherited from class org.jnetpcap.protocol.network.Rip
Rip.Command
 
Nested classes/interfaces inherited from class org.jnetpcap.packet.JHeader
JHeader.State
 
Nested classes/interfaces inherited from class org.jnetpcap.nio.JMemory
JMemory.Type
 
Field Summary
 
Fields inherited from class org.jnetpcap.protocol.network.Rip
count
 
Fields inherited from class org.jnetpcap.packet.JHeader
annotatedHeader, BYTE, EMPTY_HEADER_ARRAY, isSubHeader, packet, state
 
Fields inherited from class org.jnetpcap.nio.JMemory
JNETPCAP_LIBRARY_NAME, MAX_DIRECT_MEMORY_DEFAULT, POINTER
 
Constructor Summary
Rip1()
           
 
Method Summary
protected  void decodeHeader()
          The routing table is the only thing that needs decoding.
 Rip1.EntryV1[] routingTable()
          Gets the routing table.
 int routingTableLength()
          Length of the routing table in bits.
 
Methods inherited from class org.jnetpcap.protocol.network.Rip
bindToUdp, command, commandDescription, commandEnum, count, headerLength, version
 
Methods inherited from class org.jnetpcap.packet.JHeader
decode, getAnnotatedHeader, getDescription, getFields, getGap, getGapLength, getGapOffset, getHeader, getHeaderLength, getHeaderOffset, getId, getIndex, getLength, getName, getNextHeaderId, getNextHeaderOffset, getNicname, getOffset, getPacket, getParent, getPayload, getPayloadLength, getPayloadOffset, getPostfix, getPostfixLength, getPostfixOffset, getPrefix, getPrefixLength, getPrefixOffset, getPreviousHeaderId, getPreviousHeaderOffset, getState, getSubHeaders, hasDescription, hasGap, hasNextHeader, hasPayload, hasPostfix, hasPrefix, hasPreviousHeader, hasSubHeaders, isFragmented, isGapTruncated, isHeaderTruncated, isPayloadTruncated, isPostfixTruncated, isPrefixTruncated, peer, peer, peerPayloadTo, setPacket, setSubHeaders, sizeof, toString, transferPayloadTo, transferPayloadTo, transferPayloadTo, validateHeader
 
Methods inherited from class org.jnetpcap.nio.JBuffer
findUTF8String, getByte, getByteArray, getByteArray, getByteArray, getDouble, getFloat, getInt, getLong, getShort, getUByte, getUInt, getUShort, getUTF8Char, getUTF8String, getUTF8String, getUTF8String, getUTF8String, isReadonly, order, order, peer, peer, peer, peer, setByte, setByteArray, setByteBuffer, setDouble, setFloat, setInt, setLong, setShort, setShort0, setUByte, setUInt, setUShort, transferFrom, transferFrom, transferFrom, transferTo, transferTo, transferTo
 
Methods inherited from class org.jnetpcap.nio.JMemory
availableDirectMemory, check, cleanup, createReference, isInitialized, isJMemoryBasedOwner, isOwner, maxDirectMemory, peer, reservedDirectMemory, setSize, size, softDirectMemory, toDebugString, toHexdump, toHexdump, totalActiveAllocated, totalAllocateCalls, totalAllocated, totalAllocatedSegments0To255Bytes, totalAllocatedSegments256OrAbove, totalDeAllocateCalls, totalDeAllocated, transferFrom, transferFrom, transferFromDirect, transferOwnership, transferTo, transferTo, transferTo, transferTo, transferTo, transferTo0
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Rip1

public Rip1()
Method Detail

decodeHeader

protected void decodeHeader()
The routing table is the only thing that needs decoding. The routing table is lazy decoded using decodeRoutingTable() which only then creates routing table entries.

Overrides:
decodeHeader in class Rip

routingTable

@Field(offset=32,
       format="%RIP")
public Rip1.EntryV1[] routingTable()
Gets the routing table.

Returns:
an array of routing table entries

routingTableLength

@Dynamic(value=LENGTH)
public int routingTableLength()
Length of the routing table in bits.

Returns:
the int