SSF.OS.OSPFv2
Class LS_RequestPacket

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

public class LS_RequestPacket
extends ProtocolMessage

This class implements an OSPF link state request packet. The following from RFC 2328 was not included: 1.) Version 2.) Packet length 3.) Checksum 4.) Authentication


Constructor Summary
LS_RequestPacket()
           
 
Method Summary
 int bytecount()
          Return the total size (in bytes) of this LS Request Packet body.
 void carryPayload(ProtocolMessage payload)
          Append a ProtocolMessage to this ProtocolMessage.
 ProtocolMessage copy()
          Return a copy of this LS Request Packet content.
 java.util.Vector getRequests()
          return all requested LSA in terms of keys in a Vector.
 int header_bytecount()
          Return the size (in bytes) of this header only, don't include a payload.
 boolean isEmpty()
          Return true if there are no requests stored in this Packet else false.
 void put(java.lang.String key)
          append the copy of a key of a requested LSA to the Vector requestedLSAs.
 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
 

Constructor Detail

LS_RequestPacket

public LS_RequestPacket()
Method Detail

put

public void put(java.lang.String key)
append the copy of a key of a requested LSA to the Vector requestedLSAs.


getRequests

public java.util.Vector getRequests()
return all requested LSA in terms of keys in a Vector.


isEmpty

public boolean isEmpty()
Return true if there are no requests stored in this Packet else false.


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 Request 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 Request Packets don't have payload.

Overrides:
header_bytecount in class ProtocolMessage

copy

public ProtocolMessage copy()
Return a copy of this LS Request Packet content.

Overrides:
copy in class ProtocolMessage

toString

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