DRCL JavaSim API

drcl.inet.protocol.ospf
Class OSPF_Neighbor

java.lang.Object
  |
  +--drcl.inet.protocol.ospf.OSPF_Neighbor

public class OSPF_Neighbor
extends java.lang.Object

Class OSPF_Neighbor The information exchanged with other adjacent nodes is described by a OSPF_Neighbor data structure, which is bounded to a specific OSPF router interface. ref: sec.10

Author:
Wei-peng Chen
See Also:
OSPF, OSPF_Interface, OSPF_DBdesc, OSPF_LSA, OSPF_TimeOut_EVT

Constructor Summary
protected OSPF_Neighbor()
          Constructor
  OSPF_Neighbor(int src, OSPF_Interface oif)
          Static function used to create an OSPF_Neighbor entity
 
Method Summary
protected  void clear()
          Clear all the timer associated with this nbr.
 java.lang.String info(java.lang.String prefix_)
           
protected  void ospf_add_request(OSPF_LSA lsa)
          add lsa to summary list of neighbor
protected  void ospf_add_retrans(OSPF_LSA lsa)
          add lsa to retrans list of neighbor
protected  void ospf_add_summary(OSPF_LSA lsa)
          add lsa to summary list of neighbor
protected  OSPF_LSA ospf_lookup_request(OSPF_LSA lsa)
          Lookup lsa on request list of neighbor This lookup is different from others, because this lookup is to find the same LSA instance of different memory space
protected  OSPF_LSA ospf_lookup_retrans(OSPF_LSA_Header h)
          lookup lsa on retrans list of neighbor
protected  void ospf_remove_summary_all()
          remove all lsa from retrans list of neighbor
protected  void ospf_remove_summary(OSPF_LSA lsa)
          remove lsa from summary list of neighbor
protected  void prepare_neighbor_lsdb(int now_)
          When the neighbor reaches state 'Exchange', we have to list ls summary list for it.
 void reset()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

OSPF_Neighbor

protected OSPF_Neighbor()
Constructor

OSPF_Neighbor

public OSPF_Neighbor(int src,
                     OSPF_Interface oif)
Static function used to create an OSPF_Neighbor entity
Method Detail

clear

protected void clear()
Clear all the timer associated with this nbr. This Function is called when the router detect the nbr is down.

prepare_neighbor_lsdb

protected void prepare_neighbor_lsdb(int now_)
When the neighbor reaches state 'Exchange', we have to list ls summary list for it. Prepare for dd exchange

ospf_add_summary

protected void ospf_add_summary(OSPF_LSA lsa)
add lsa to summary list of neighbor

ospf_remove_summary

protected void ospf_remove_summary(OSPF_LSA lsa)
remove lsa from summary list of neighbor

ospf_remove_summary_all

protected void ospf_remove_summary_all()
remove all lsa from retrans list of neighbor

ospf_add_request

protected void ospf_add_request(OSPF_LSA lsa)
add lsa to summary list of neighbor

ospf_lookup_retrans

protected OSPF_LSA ospf_lookup_retrans(OSPF_LSA_Header h)
lookup lsa on retrans list of neighbor

ospf_add_retrans

protected void ospf_add_retrans(OSPF_LSA lsa)
add lsa to retrans list of neighbor

ospf_lookup_request

protected OSPF_LSA ospf_lookup_request(OSPF_LSA lsa)
Lookup lsa on request list of neighbor This lookup is different from others, because this lookup is to find the same LSA instance of different memory space

reset

public void reset()

toString

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

info

public java.lang.String info(java.lang.String prefix_)

DRCL JavaSim API

Copyright © 2001 - DRCL, OSU     ~ Back to JavaSim Home ~