|
||||||||||
| 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.DD_Packet
This class implements an OSPF Database Description packet. The following from RFC 2328 was not included: 1.) Version 2.) Packet length 3.) Checksum 4.) Authentication
| Field Summary | |
int |
DD_seq_num
|
boolean |
initialize
|
int |
interfaceMTU
|
boolean |
isMaster
|
boolean |
more
|
boolean[] |
options
|
| Constructor Summary | |
DD_Packet(int interfaceMTU,
boolean[] options,
boolean initialize,
boolean more,
boolean isMaster,
int DD_seq_num)
|
|
| Method Summary | |
void |
addLSAHeader(LSA lsa)
Add a new LSA Header to the list of LSA Headers in this DD Packet. |
int |
bytecount()
Return the total size (in bytes) of this DD Packet body. |
void |
carryPayload(ProtocolMessage payload)
Append a ProtocolMessage to this ProtocolMessage. |
ProtocolMessage |
copy()
Return an exact copy of the Database Description Packet Content. |
java.util.Vector |
getHeaders()
Return the Vector with the LSA Headers carried by this DD Packet. |
int |
header_bytecount()
Return the size (in bytes) of this header only, don't include a payload. |
boolean |
isEmpty()
check LSA_Headers on content. |
java.lang.String |
toString()
|
| Methods inherited from class SSF.OS.ProtocolMessage |
dropHeader, dropPayload, frombytes, fromVersion, 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 int interfaceMTU
public boolean[] options
public boolean initialize
public boolean more
public boolean isMaster
public int DD_seq_num
| Constructor Detail |
public DD_Packet(int interfaceMTU,
boolean[] options,
boolean initialize,
boolean more,
boolean isMaster,
int DD_seq_num)
| Method Detail |
public void carryPayload(ProtocolMessage payload)
ProtocolMessage
carryPayload in class ProtocolMessagepublic void addLSAHeader(LSA lsa)
public java.util.Vector getHeaders()
public boolean isEmpty()
public int bytecount()
bytecount in class ProtocolMessagepublic int header_bytecount()
header_bytecount in class ProtocolMessagepublic ProtocolMessage copy()
copy in class ProtocolMessagepublic 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 | |||||||||