[Javanetsim-cvs] javaNetSim/core/protocolsuite/tcp_ip ProtocolStack.java, 1.53, 1.54
Status: Beta
Brought to you by:
darkkey
From: Alexander B. <da...@us...> - 2006-11-22 21:39:48
|
Update of /cvsroot/javanetsim/javaNetSim/core/protocolsuite/tcp_ip In directory sc8-pr-cvs6.sourceforge.net:/tmp/cvs-serv30970/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.53 retrieving revision 1.54 diff -C2 -d -r1.53 -r1.54 *** ProtocolStack.java 8 Nov 2006 14:27:29 -0000 1.53 --- ProtocolStack.java 22 Nov 2006 21:39:45 -0000 1.54 *************** *** 77,82 **** import java.util.TimerTask; - import core.protocolsuite.tcp_ip.ospf.*; - import core.Error; --- 77,80 ---- *************** *** 126,132 **** private Node mParentNode = null; ! private OSPF mOspfprotocol = null; ! ! private int packetinputIPCounter; // counter for input IP Packets private int packetoutputIPCounter; // counter for output IP Packets --- 124,128 ---- private Node mParentNode = null; ! private int packetinputIPCounter; // counter for input IP Packets private int packetoutputIPCounter; // counter for output IP Packets *************** *** 170,175 **** mUDPprotocol = new Udp(this); //gift (sourceforge.net user) 17 Nov 2005 ! mOspfprotocol = new OSPF(this); // alouette ! } mParentNode = node; --- 166,170 ---- mUDPprotocol = new Udp(this); //gift (sourceforge.net user) 17 Nov 2005 ! } mParentNode = node; *************** *** 893,933 **** } ! } else if (ipPacket instanceof ospf_packetheader) ! { ! // call receiveing ! if (((ospf_packetheader)ipPacket).GetPackettype()==1) ! { ! if (ipPacket.getHopCount()==1) //hop count ! { ! // in ! mOspfprotocol.ReceiveHelloPacket((OSPFhello_packet)ipPacket); ! } ! } ! else if (((ospf_packetheader)ipPacket).GetPackettype()==2) ! { ! // Database description ! } ! else if (((ospf_packetheader)ipPacket).GetPackettype()==3) ! { ! // Link state request ! } ! else if (((ospf_packetheader)ipPacket).GetPackettype()==4) ! { ! // Link update ! } ! else if (((ospf_packetheader)ipPacket).GetPackettype()==5) ! { ! // Link acknowlogdgement ! } ! ! } ! ! ! ! ! ! ! ! else{ --- 888,892 ---- } ! } else{ |