|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--SSF.OS.ProtocolMessage
|
+--SSF.OS.OSPF.Packet
This class implements a generic OSPF packet. The following from RFC 2178 are not included: 1) OSPF Version number 2) Packet length 3) Checksum 4) Authentication Type 5) Authentication
| Field Summary | |
int |
area_num
The area to which this packet belongs. |
java.lang.String |
as_nh
The NHI address prefix of the AS to which this packet belongs. |
static int |
DATABASE
Indicates a database description packet. |
static int |
HELLO
Indicates a hello packet. |
static int |
LS_ACK
Indicates a link state acknowledgement packet. |
static int |
LS_REQUEST
Indicates a link state request packet. |
static int |
LS_UPDATE
Indicates a link state update packet. |
java.lang.String |
nh
The NHI prefix of the sender. |
int |
rtrid
The identification of the router which sent this packet, chosen as the smallest of the IPaddress of all its interfaces. |
int |
typ
The type of this Packet. |
| Constructor Summary | |
Packet(int t,
int routerid,
java.lang.String rtrnh,
java.lang.String asnh,
int areano)
Constructs a packet given type, router ID, area ID. |
|
| Method Summary | |
java.lang.String |
toString()
|
| Methods inherited from class SSF.OS.ProtocolMessage |
bytecount, carryPayload, copy, dropHeader, dropPayload, frombytes, fromVersion, header_bytecount, payload, previous, size, tobytes, version |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final int HELLO
public static final int DATABASE
public static final int LS_REQUEST
public static final int LS_UPDATE
public static final int LS_ACK
public int typ
public int rtrid
public java.lang.String nh
public java.lang.String as_nh
public int area_num
| Constructor Detail |
public Packet(int t,
int routerid,
java.lang.String rtrnh,
java.lang.String asnh,
int areano)
| Method Detail |
public java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||