Update of /cvsroot/javanetsim/javaNetSim/core/protocolsuite/tcp_ip
In directory fdv4jf1.ch3.sourceforge.com:/tmp/cvs-serv21408/core/protocolsuite/tcp_ip
Modified Files:
DHCPC.java Tcp.java
Log Message:
some little bugs was trapped
Index: DHCPC.java
===================================================================
RCS file: /cvsroot/javanetsim/javaNetSim/core/protocolsuite/tcp_ip/DHCPC.java,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** DHCPC.java 26 Sep 2008 17:53:49 -0000 1.6
--- DHCPC.java 22 Oct 2008 16:15:30 -0000 1.7
***************
*** 22,27 ****
String iface;
!
! String DHCPServer;
int xid;
int leaseTime;
--- 22,27 ----
String iface;
!
! String DHCPServer;
int xid;
int leaseTime;
***************
*** 315,317 ****
--- 315,321 ----
SendData(appSock, "255.255.255.255", 67, Data);
}
+
+ public String getInterface() {
+ return iface;
+ }
}
Index: Tcp.java
===================================================================
RCS file: /cvsroot/javanetsim/javaNetSim/core/protocolsuite/tcp_ip/Tcp.java,v
retrieving revision 1.105
retrieving revision 1.106
diff -C2 -d -r1.105 -r1.106
*** Tcp.java 19 Nov 2007 15:10:28 -0000 1.105
--- Tcp.java 22 Oct 2008 16:15:30 -0000 1.106
***************
*** 248,252 ****
private Timer timer;
private PriorityQueue tcp_timers = new PriorityQueue();
! private int window_size = 10; //tcp window-size for new sessions
private Object tcp_timers_lock = new Object(); //for locking queue tcp_timers
private int current_time = 0;
--- 248,253 ----
private Timer timer;
private PriorityQueue tcp_timers = new PriorityQueue();
! private int window_size = DEFAULT_WINDOW_SIZE; //tcp window-size for new sessions
! public final static int DEFAULT_WINDOW_SIZE = 10;
private Object tcp_timers_lock = new Object(); //for locking queue tcp_timers
private int current_time = 0;
|