SSF.OS.OSPFv2
Class LS_AckPacket

java.lang.Object
  |
  +--SSF.OS.ProtocolMessage
        |
        +--SSF.OS.OSPFv2.LS_AckPacket

public class LS_AckPacket
extends ProtocolMessage

This class implements an OSPF Acknowledgment Packet. The following from RFC2328 was not included: 1.) Version 2.) Packet length 3.) Checksum 4.) Authentication


Field Summary
 java.util.Vector lsaHeaders
           
 
Constructor Summary
LS_AckPacket()
           
 
Method Summary
 int bytecount()
          Return the total size (in bytes) of this LS Acknowledgment Packet body.
 void carryPayload(ProtocolMessage payload)
          Append a ProtocolMessage to this ProtocolMessage.
 java.util.Vector getHeaders()
          return a Vector of all LSA Headers contained in this LS Acknowledgment Packet payload.
 int header_bytecount()
          Return the size (in bytes) of this header only, don't include a payload.
 void put(LSA lsa)
          append an LSA Header to this LS Acknowledgment Packet payload.
 java.lang.String toString()
           
 
Methods inherited from class SSF.OS.ProtocolMessage
copy, 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

lsaHeaders

public java.util.Vector lsaHeaders
Constructor Detail

LS_AckPacket

public LS_AckPacket()
Method Detail

put

public void put(LSA lsa)
append an LSA Header to this LS Acknowledgment Packet payload.


getHeaders

public java.util.Vector getHeaders()
return a Vector of all LSA Headers contained in this LS Acknowledgment Packet payload.


carryPayload

public void carryPayload(ProtocolMessage payload)
Description copied from class: ProtocolMessage
Append a ProtocolMessage to this ProtocolMessage.

Overrides:
carryPayload in class ProtocolMessage

bytecount

public int bytecount()
Return the total size (in bytes) of this LS Acknowledgment Packet body. All and only fields specified in RFC 2328 are included in calculation!!!

Overrides:
bytecount in class ProtocolMessage

header_bytecount

public int header_bytecount()
Return the size (in bytes) of this header only, don't include a payload. Link State Acknowledgment Packets don't have payload.

Overrides:
header_bytecount in class ProtocolMessage

toString

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