|
||||||||||
| 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.Summary_LSA
This class implements an OSPF Summary Link State Advertisement. The following from RFC 2328 was not included: 1.) TOS 2.) TOS Metric
| Field Summary | |
int |
metric
The cost of this route. |
int |
netMask
For Type 3 summary-LSAs: The destination network's IP address mask. |
| Constructor Summary | |
Summary_LSA(int cost)
Type 4 Summary_LSA constructor. |
|
Summary_LSA(int mask,
int cost)
Type 3 Summary_LSA constructor. |
|
| Method Summary | |
int |
bytecount()
Return the total size (in bytes) of this header plus the payload, if any. |
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 Summary_LSA an compare it to this Summary_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 int netMask
public int metric
| Constructor Detail |
public Summary_LSA(int mask,
int cost)
mask - int value representing the destination network's IP address mask.cost - int value representing the cost of this route.public Summary_LSA(int cost)
cost - int value representing the cost of this route.| Method Detail |
public void carryPayload(ProtocolMessage payload)
ProtocolMessage
carryPayload in class ProtocolMessagepublic int bytecount()
ProtocolMessage
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 Summary_LSA to compare.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||