SSF.OS.OSPF
Class Packet

java.lang.Object
  |
  +--SSF.OS.ProtocolMessage
        |
        +--SSF.OS.OSPF.Packet

public class Packet
extends ProtocolMessage

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

HELLO

public static final int HELLO
Indicates a hello packet.

See Also:
Constant Field Values

DATABASE

public static final int DATABASE
Indicates a database description packet.

See Also:
Constant Field Values

LS_REQUEST

public static final int LS_REQUEST
Indicates a link state request packet.

See Also:
Constant Field Values

LS_UPDATE

public static final int LS_UPDATE
Indicates a link state update packet.

See Also:
Constant Field Values

LS_ACK

public static final int LS_ACK
Indicates a link state acknowledgement packet.

See Also:
Constant Field Values

typ

public int typ
The type of this Packet.


rtrid

public int rtrid
The identification of the router which sent this packet, chosen as the smallest of the IPaddress of all its interfaces.


nh

public java.lang.String nh
The NHI prefix of the sender.


as_nh

public java.lang.String as_nh
The NHI address prefix of the AS to which this packet belongs.


area_num

public int area_num
The area to which this packet belongs.

Constructor Detail

Packet

public 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 Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object