|
||||||||||
| 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.LSA
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 |
public static final int ROUTER_LSA
public static final int NETWORK_LSA
public static final int SUMMARY_NETWORK_LSA
public static final int SUMMARY_ASBR_LSA
public static final int AS_EXTERNAL_LSA
public int seqnum
public int age
public byte typ
public int id
public int adrtr
public java.lang.String adrtrnh
public java.util.Vector contents
| Constructor Detail |
public LSA(int seq,
int t,
int lsID,
int ar,
java.lang.String arnh,
java.util.Vector con)
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 |
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 | |||||||||