[Javanetsim-cvs] javaNetSim/core/protocolsuite/tcp_ip/ospf OSPF.java,1.2,1.3 OSPFDTBdescription_pack
Status: Beta
Brought to you by:
darkkey
From: Alexander B. <da...@us...> - 2006-02-22 14:06:01
|
Update of /cvsroot/javanetsim/javaNetSim/core/protocolsuite/tcp_ip/ospf In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21494 Modified Files: OSPF.java OSPFDTBdescription_packet.java OSPF_lsaheader.java Log Message: Index: OSPFDTBdescription_packet.java =================================================================== RCS file: /cvsroot/javanetsim/javaNetSim/core/protocolsuite/tcp_ip/ospf/OSPFDTBdescription_packet.java,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** OSPFDTBdescription_packet.java 10 Feb 2006 13:00:57 -0000 1.4 --- OSPFDTBdescription_packet.java 22 Feb 2006 14:05:53 -0000 1.5 *************** *** 2,6 **** * OSPFDTBdescription_packet.java * ! * Created on 19 Íîÿáðü 2005 ã., 20:15 * * To change this template, choose Tools | Options and locate the template under --- 2,6 ---- * OSPFDTBdescription_packet.java * ! * Created on 19 Nov 2005, 20:15 * * To change this template, choose Tools | Options and locate the template under Index: OSPF.java =================================================================== RCS file: /cvsroot/javanetsim/javaNetSim/core/protocolsuite/tcp_ip/ospf/OSPF.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** OSPF.java 12 Feb 2006 10:22:34 -0000 1.2 --- OSPF.java 22 Feb 2006 14:05:53 -0000 1.3 *************** *** 256,261 **** } tosend.setDestIPAddress(inDestIPAddress); mParentStack.sendPacket(tosend); ! } --- 256,262 ---- } tosend.setDestIPAddress(inDestIPAddress); + try{ mParentStack.sendPacket(tosend); ! }catch(Exception e){} } *************** *** 270,279 **** // check if this router ID is leeser than ID neighbor // TODO ! if (RouterID < inPacket.GetRouterID() ) ! { // ageree // SendDTBdescroption_packet // SendDTBdescriptionPacket(1,1,0,inPacket.ReturnDdsn(),0); ! } } else --- 271,280 ---- // check if this router ID is leeser than ID neighbor // TODO ! //if (RouterID < inPacket.GetRouterID() ) ! //{ // ageree // SendDTBdescroption_packet // SendDTBdescriptionPacket(1,1,0,inPacket.ReturnDdsn(),0); ! //} } else *************** *** 297,306 **** // check the element in incoming packet ! if ( !ForeignHeader.contains(inPacket.ReturnLsaHeader().elementAt(i)) ) ! { /* add header to this list */ ! ForeignHeader.addElement(inPacket.ReturnLsaHeader().elementAt(i)); // // form graph ! } } --- 298,307 ---- // check the element in incoming packet ! //if ( !ForeignHeader.contains(inPacket.ReturnLsaHeader().elementAt(i)) ) ! //{ /* add header to this list */ ! // ForeignHeader.addElement(inPacket.ReturnLsaHeader().elementAt(i)); // // form graph ! //} } *************** *** 343,347 **** public OSPF_linkstaterequest_packet SendLinkStateRequestPacket() { ! } --- 344,348 ---- public OSPF_linkstaterequest_packet SendLinkStateRequestPacket() { ! return null; } *************** *** 353,357 **** public OSPFlinkstateupdate_packet SendLinkStateUpdatePacket() { ! } /* --- 354,358 ---- public OSPFlinkstateupdate_packet SendLinkStateUpdatePacket() { ! return null; } /* Index: OSPF_lsaheader.java =================================================================== RCS file: /cvsroot/javanetsim/javaNetSim/core/protocolsuite/tcp_ip/ospf/OSPF_lsaheader.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** OSPF_lsaheader.java 10 Feb 2006 13:00:57 -0000 1.2 --- OSPF_lsaheader.java 22 Feb 2006 14:05:53 -0000 1.3 *************** *** 2,6 **** * OSPF_lsaheader.java * ! * Created on 19 Íîÿáðü 2005 ã., 20:26 * * To change this template, choose Tools | Options and locate the template under --- 2,6 ---- * OSPF_lsaheader.java * ! * Created on 19 Nov 2005, 20:26 * * To change this template, choose Tools | Options and locate the template under |