SSF.OS.OSPFv2
Class Neighbor.LastRecDDPacket

java.lang.Object
  |
  +--SSF.OS.OSPFv2.Neighbor.LastRecDDPacket
Enclosing class:
Neighbor

public class Neighbor.LastRecDDPacket
extends java.lang.Object

A class in which the important information of the last received DD packet are recorded. These are the Initialize, More and Master bits the options and the sequence number.


Field Summary
 int DDSeqNum
           
 boolean initialize
           
 boolean isMaster
           
 boolean more
           
 boolean[] options
           
 
Constructor Summary
Neighbor.LastRecDDPacket()
           
 
Method Summary
 boolean checkOnDuplicate(DD_Packet content)
          checks whether the DD Packet just received is a duplicate.
 void clear()
          clears this structure.
 void set(boolean init, boolean mo, boolean ma, boolean[] opt, int DDSeqNum)
          saves the important values for identifying duplicates of a new received DD Packet
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

initialize

public boolean initialize

more

public boolean more

isMaster

public boolean isMaster

options

public boolean[] options

DDSeqNum

public int DDSeqNum
Constructor Detail

Neighbor.LastRecDDPacket

public Neighbor.LastRecDDPacket()
Method Detail

set

public void set(boolean init,
                boolean mo,
                boolean ma,
                boolean[] opt,
                int DDSeqNum)
saves the important values for identifying duplicates of a new received DD Packet


clear

public void clear()
clears this structure. Used when the Inactivity Timer expires.


checkOnDuplicate

public boolean checkOnDuplicate(DD_Packet content)
checks whether the DD Packet just received is a duplicate. Returns true if it is a duplicate, else false.