Update of /cvsroot/javanetsim/javaNetSim/core/protocolsuite/tcp_ip/ospf
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7513/core/protocolsuite/tcp_ip/ospf
Modified Files:
OSPF.java
Log Message:
Index: OSPF.java
===================================================================
RCS file: /cvsroot/javanetsim/javaNetSim/core/protocolsuite/tcp_ip/ospf/OSPF.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** OSPF.java 10 Feb 2006 18:01:56 -0000 1.1
--- OSPF.java 12 Feb 2006 10:22:34 -0000 1.2
***************
*** 34,37 ****
--- 34,38 ----
//private String myID;
//private Vector ForeignHeader = new Vector();
+ private ProtocolStack mParentStack;
private String RouterID; // id current router
private String DesignatedRouter;
***************
*** 213,217 ****
if (flag==0)
{
! // send hello packet
}
--- 214,220 ----
if (flag==0)
{
! // send hello packet
! AddRouter(inPacket.GetRouterID(), RouterID, 1);
! SendospfHelloPacket(inPacket.GetRouterID());
}
***************
*** 230,233 ****
--- 233,237 ----
//SendHelloPacket();
+ SendospfHelloPacket(inPacket.GetRouterID());
}
}
***************
*** 252,256 ****
}
tosend.setDestIPAddress(inDestIPAddress);
! sendPacket(tosend);
}
--- 256,260 ----
}
tosend.setDestIPAddress(inDestIPAddress);
! mParentStack.sendPacket(tosend);
}
|