|
DRCL JavaSim API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--drcl.inet.protocol.ospf.OSPF_Interface
class OSPF_Interface An OSPF interface is the connection between a router and a network. One or more router adjacencies may develop over an interface. A router's LSAs reflect the state of its interfaces and their associated adjacencies. ref: sec 9
OSPF,
OSPF_Neighbor,
OSPF_TimeOut_EVT| Field Summary | |
protected OSPF_TimeOut_EVT |
Ack_Delay_Reach_EVT
|
protected OSPF_Area |
area
A router interface belongs to one and only one area |
protected int |
cost
Cost for transmitting a packet over this interface, must be greater than zero |
protected int |
dead_interval
the # of second before the neighbor is declared to be down |
protected int |
hello_interval
the # of second between hello pkts are sent over this interface |
protected OSPF_TimeOut_EVT |
Hello_TimeOut_EVT
|
protected int |
if_id
|
protected int |
ifmtu
I/F MTU |
protected long |
lladdr
|
protected java.util.Vector |
lsa_delayed_ack
LSAs to Delayed Acknowledge |
protected java.util.Vector |
neighbor_list
list of ospf neighbor over this interface |
protected int |
ospf_stat_delayed_lsack
|
protected int |
ospf_stat_dr_election
|
protected int |
rxmt_interval
The number of seconds between LSA retransmissions, for adjacencies belonging to this interface. |
protected int |
state
|
protected int |
transdelay
I/F transmission delay, the approximate delay over this link |
protected int |
type
the type info from interface, default value: IF_PTOP |
| Constructor Summary | |
protected |
OSPF_Interface()
Constructor |
| Method Summary | |
protected void |
add_new_neighbor(OSPF_Neighbor nbr)
Add one new neighbor to this interface |
protected void |
clear()
Disable all timer |
protected int |
if_is_pointopoint()
Check whther this interface is the type of point-to-point |
java.lang.String |
info(java.lang.String prefix_)
|
protected int |
Interface_Down()
|
protected int |
Interface_Up()
Never called in this implemented since we use CSL hello service Interface_UP event is trigger be NEIGHBOR_UP event |
protected int |
neighbor_change()
Oe of the neighbors associated with this interface change its state |
protected int |
ospf_interface_count_full_nbr()
count number of full neighbor adjacent to this interface |
static OSPF_Interface |
ospf_interface_create(int if_index,
int type_,
int mtu_,
OSPF_Area area_)
Constructor: Create new ospf6 interface structure In our implementation, this function is called when OSPF receives NEIGHBOR_UP event so that the state of interface is UP |
protected OSPF_Neighbor |
ospf_nbr_lookup_by_routerid(long id)
Lookup the neighbor associated with this interface with router id |
protected void |
remove_neighbor(OSPF_Neighbor nbr)
Remove one new neighbor to this interface |
void |
reset()
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected int if_id
protected OSPF_Area area
protected int type
protected int state
protected long lladdr
protected int hello_interval
protected int dead_interval
protected int transdelay
protected OSPF_TimeOut_EVT Hello_TimeOut_EVT
protected OSPF_TimeOut_EVT Ack_Delay_Reach_EVT
protected java.util.Vector neighbor_list
protected int cost
protected int rxmt_interval
protected java.util.Vector lsa_delayed_ack
protected int ifmtu
protected int ospf_stat_dr_election
protected int ospf_stat_delayed_lsack
| Constructor Detail |
protected OSPF_Interface()
| Method Detail |
public java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String info(java.lang.String prefix_)
public void reset()
protected void clear()
public static OSPF_Interface ospf_interface_create(int if_index,
int type_,
int mtu_,
OSPF_Area area_)
protected int ospf_interface_count_full_nbr()
protected int Interface_Up()
protected int Interface_Down()
protected int neighbor_change()
protected OSPF_Neighbor ospf_nbr_lookup_by_routerid(long id)
protected int if_is_pointopoint()
protected void add_new_neighbor(OSPF_Neighbor nbr)
protected void remove_neighbor(OSPF_Neighbor nbr)
|
DRCL JavaSim API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||