[Javanetsim-cvs] javaNetSim/core/protocolsuite/tcp_ip ProtocolStack.java,1.37,1.38
Status: Beta
Brought to you by:
darkkey
From: Alouette <alo...@us...> - 2006-02-10 13:48:58
|
Update of /cvsroot/javanetsim/javaNetSim/core/protocolsuite/tcp_ip In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv32073/core/protocolsuite/tcp_ip Modified Files: ProtocolStack.java Log Message: Index: ProtocolStack.java =================================================================== RCS file: /cvsroot/javanetsim/javaNetSim/core/protocolsuite/tcp_ip/ProtocolStack.java,v retrieving revision 1.37 retrieving revision 1.38 diff -C2 -d -r1.37 -r1.38 *** ProtocolStack.java 10 Feb 2006 13:00:57 -0000 1.37 --- ProtocolStack.java 10 Feb 2006 13:48:41 -0000 1.38 *************** *** 77,80 **** --- 77,82 ---- import java.util.TimerTask; + import core.protocolsuite.tcp_ip.ospf.*; + *************** *** 124,128 **** private Node mParentNode = null; ! private Ospf mOspfprotocol = null; --- 126,130 ---- private Node mParentNode = null; ! private OSPF mOspfprotocol = null; *************** *** 168,172 **** mUDPprotocol = new Udp(this); //gift (sourceforge.net user) 17 Nov 2005 ! } mParentNode = node; --- 170,175 ---- mUDPprotocol = new Udp(this); //gift (sourceforge.net user) 17 Nov 2005 ! mOspfprotocol = new OSPF(this); // alouette ! } mParentNode = node; *************** *** 859,863 **** if (((ospf_packetheader)ipPacket).GetPackettype()==1) { ! // initialize } else if (((ospf_packetheader)ipPacket).GetPackettype()==2) --- 862,870 ---- if (((ospf_packetheader)ipPacket).GetPackettype()==1) { ! if (ipPacket.getHopCount()==1) ! { ! // in ! mOspfprotocol.ReceiveHelloPacket((OSPFhello_packet)ipPacket); ! } } else if (((ospf_packetheader)ipPacket).GetPackettype()==2) *************** *** 1930,1937 **** } ! public void Sendospf(ospf_packetheader tosend) ! { ! sendPacket(tosend); ! } }//EOF --- 1937,1941 ---- } ! }//EOF |