[Javanetsim-cvs] javaNetSim/core/protocolsuite/tcp_ip ARP.java, 1.9, 1.10
Status: Beta
Brought to you by:
darkkey
From: Alexander B. <da...@us...> - 2008-09-27 08:38:36
|
Update of /cvsroot/javanetsim/javaNetSim/core/protocolsuite/tcp_ip In directory sc8-pr-cvs17.sourceforge.net:/tmp/cvs-serv21465/protocolsuite/tcp_ip Modified Files: ARP.java Log Message: Index: ARP.java =================================================================== RCS file: /cvsroot/javanetsim/javaNetSim/core/protocolsuite/tcp_ip/ARP.java,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** ARP.java 14 Oct 2007 22:14:52 -0000 1.9 --- ARP.java 27 Sep 2008 08:38:23 -0000 1.10 *************** *** 113,121 **** private String mLastIpRequest = "0.0.0.0"; ! public ARP(ProtocolStack inParentStack){ mParentStack = inParentStack; } --- 113,122 ---- private String mLastIpRequest = "0.0.0.0"; ! public int ARP_MAXTRY; public ARP(ProtocolStack inParentStack){ mParentStack = inParentStack; + ARP_MAXTRY = 1; } *************** *** 307,313 **** String output= null; ! int tryings = 5; ! IPV4Address ip; try{ --- 308,314 ---- String output= null; ! int tryings = ARP_MAXTRY; ! IPV4Address ip; try{ *************** *** 340,344 **** //then send ARP Packet to try and find out about IP Address ! while(output==null && tryings-->0){ mLastIpRequest = IPAddress; --- 341,345 ---- //then send ARP Packet to try and find out about IP Address ! while(output==null && tryings-->0){ mLastIpRequest = IPAddress; |