|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--SSF.OS.ProtocolMessage
|
+--SSF.OS.OSPFv2.Router_LSA
This class implements an OSPF Router Link State Advertisement. The following from RFC 2328 was not included: 1.) TOS 2.) TOS Metric
| Field Summary | |
boolean |
isAreaBorderRouter
Indicates the B-bit in an Router-LSA (Border) |
boolean |
isASBoundaryRouter
Indicates the E-bit in an Router-LSA (External) |
boolean |
isVirtLinkEndPoint
Indicates the V-bit in an Router-LSA (Virtual) |
java.util.Vector |
links
A Vector collecting all link descriptions (LinkInfo) belonging to this Router_LSA. |
| Constructor Summary | |
Router_LSA(boolean v,
boolean e,
boolean b)
|
|
| Method Summary | |
void |
addLink(LinkInfo link)
add a new link info to this router LSA. |
int |
bytecount()
Return the total size (in bytes) of this Router_LSA body. |
void |
carryPayload(ProtocolMessage payload)
Append a ProtocolMessage to this ProtocolMessage. |
ProtocolMessage |
copy()
Return an exact copy of this data structure. |
boolean |
equals(java.lang.Object test)
Take a Router_LSA an compare it to this Router_LSA. |
int |
getNumOfLinks()
Return the Number of link informations stored in this Router_LSA. |
int |
header_bytecount()
Return the size (in bytes) of this header only, don't include a payload. |
| Methods inherited from class SSF.OS.ProtocolMessage |
dropHeader, dropPayload, frombytes, fromVersion, payload, previous, size, tobytes, version |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public boolean isVirtLinkEndPoint
public boolean isASBoundaryRouter
public boolean isAreaBorderRouter
public java.util.Vector links
| Constructor Detail |
public Router_LSA(boolean v,
boolean e,
boolean b)
| Method Detail |
public void carryPayload(ProtocolMessage payload)
ProtocolMessage
carryPayload in class ProtocolMessagepublic void addLink(LinkInfo link)
public int getNumOfLinks()
public int bytecount()
bytecount in class ProtocolMessagepublic int header_bytecount()
header_bytecount in class ProtocolMessagepublic ProtocolMessage copy()
copy in class ProtocolMessagepublic boolean equals(java.lang.Object test)
equals in class java.lang.Objecttest - Object referencing a Router_LSA to compare.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||