SSF.OS.OSPF
Class LSA

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

public class LSA
extends ProtocolMessage

An OSPF Link State Advertisement packet. It extends an OSPF packet. The following table shows the information that goes into the different fields depending on the LSA packet type:


 
 
TYPE LS Identification Sent by Received by
--------------------------------------------------------------------------------------
1 - Router link OSPF Router ID each router rtrs in the same area
2 - Network link IP itrf address of
network's dest. router
3 - Summary link (IP net) IP network number Area border rtr rtrs in the same area
4 - Summary link (ASBR) ASBR OSPF rtr ID ASB rtr rtrs in the AS
5 - External link IP network number AS boundary rtr rtrs in the AS
--------------------------------------------------------------------------------------

In RFC 2178, but NOT implemented:

1) LS checksum
2) length
3) Options


Field Summary
 int adrtr
          The advertising router of this LSA.
 java.lang.String adrtrnh
           
 int age
          The age of this Link State Advertisement.
static int AS_EXTERNAL_LSA
          Indicates an AS External LSA.
 java.util.Vector contents
          The contents of this LSA packet: a list of link information.
 int id
          The Link State Identification of this LSA.
static int NETWORK_LSA
          Indicates a network-LSA.
static int ROUTER_LSA
          Indicates a router-LSA.
 int seqnum
          The link state sequence number of this LSA header.
static int SUMMARY_ASBR_LSA
          Indicates a summary-LSA (ASBR).
static int SUMMARY_NETWORK_LSA
          Indicates a summary-LSA (IP network).
 byte typ
          The type of this Link State Advertisement.
 
Constructor Summary
LSA(int seq, int t, int lsID, int ar, java.lang.String arnh, java.util.Vector con)
          Constructs a Link State Advertisement.
 
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

ROUTER_LSA

public static final int ROUTER_LSA
Indicates a router-LSA.

See Also:
Constant Field Values

NETWORK_LSA

public static final int NETWORK_LSA
Indicates a network-LSA.

See Also:
Constant Field Values

SUMMARY_NETWORK_LSA

public static final int SUMMARY_NETWORK_LSA
Indicates a summary-LSA (IP network).

See Also:
Constant Field Values

SUMMARY_ASBR_LSA

public static final int SUMMARY_ASBR_LSA
Indicates a summary-LSA (ASBR).

See Also:
Constant Field Values

AS_EXTERNAL_LSA

public static final int AS_EXTERNAL_LSA
Indicates an AS External LSA.

See Also:
Constant Field Values

seqnum

public int seqnum
The link state sequence number of this LSA header.


age

public int age
The age of this Link State Advertisement.


typ

public byte typ
The type of this Link State Advertisement.


id

public int id
The Link State Identification of this LSA.


adrtr

public int adrtr
The advertising router of this LSA.


adrtrnh

public java.lang.String adrtrnh

contents

public java.util.Vector contents
The contents of this LSA packet: a list of link information.

Constructor Detail

LSA

public LSA(int seq,
           int t,
           int lsID,
           int ar,
           java.lang.String arnh,
           java.util.Vector con)
Constructs a Link State Advertisement.

Parameters:
seq - LSA sequence number.
t - LSA type.
lsID - Link state ID (OSPF router ID).
ar - The ID of the advertising router.
arnh - The NHI prefix address of the advertising router.
Method Detail

toString

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