SSF.OS.OSPFv2
Class DD_Packet

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

public class DD_Packet
extends ProtocolMessage

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

interfaceMTU

public int interfaceMTU

options

public boolean[] options

initialize

public boolean initialize

more

public boolean more

isMaster

public boolean isMaster

DD_seq_num

public int DD_seq_num
Constructor Detail

DD_Packet

public DD_Packet(int interfaceMTU,
                 boolean[] options,
                 boolean initialize,
                 boolean more,
                 boolean isMaster,
                 int DD_seq_num)
Method Detail

carryPayload

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

Overrides:
carryPayload in class ProtocolMessage

addLSAHeader

public void addLSAHeader(LSA lsa)
Add a new LSA Header to the list of LSA Headers in this DD Packet.


getHeaders

public java.util.Vector getHeaders()
Return the Vector with the LSA Headers carried by this DD Packet.


isEmpty

public boolean isEmpty()
check LSA_Headers on content. If it is empty return true, else false.


bytecount

public int bytecount()
Return the total size (in bytes) of this DD 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. Database Description Packets don't have payload.

Overrides:
header_bytecount in class ProtocolMessage

copy

public ProtocolMessage copy()
Return an exact copy of the Database Description Packet Content.

Overrides:
copy in class ProtocolMessage

toString

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