|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jnetpcap.nio.JMemory
org.jnetpcap.nio.JBuffer
org.jnetpcap.packet.JHeader
org.jnetpcap.protocol.network.Rip
@Header(suite=TCP_IP,
description="Routing Information Protocol")
public abstract class RipRouting Information Protocol (RIP). This is a baseclass for subclasses Rip1 and Rip2 which parse rip version 1 and version 2 protocols.
| Nested Class Summary | |
|---|---|
static class |
Rip.Command
Valid values for RIP OpCode field. |
| 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 | |
|---|---|
protected int |
count
The 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 | |
|---|---|
Rip()
|
|
| Method Summary | |
|---|---|
static boolean |
bindToUdp(JPacket packet,
Udp udp)
Bind to UDP port 520 which is the default for RIP. |
int |
command()
Command. |
java.lang.String |
commandDescription()
Command description. |
Rip.Command |
commandEnum()
Command enum. |
int |
count()
Gets the number of entries in the routing table. |
protected void |
decodeHeader()
The routing table is the only thing that needs decoding. |
static int |
headerLength(JBuffer buffer,
int offset)
Header length. |
int |
version()
Version. |
| 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 java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected int count
| Constructor Detail |
|---|
public Rip()
| Method Detail |
|---|
@Bind(to=Udp.class)
public static boolean bindToUdp(JPacket packet,
Udp udp)
packet - current packetudp - udp header within this packet
@HeaderLength
public static int headerLength(JBuffer buffer,
int offset)
buffer - the bufferoffset - the offset
@Field(offset=0,
length=8)
public int command()
@Dynamic(value=DESCRIPTION) public java.lang.String commandDescription()
public Rip.Command commandEnum()
public int count()
protected void decodeHeader()
decodeHeader in class JHeader
@Field(offset=8,
length=8)
public int version()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||