Update of /cvsroot/javanetsim/javaNetSim/core/protocolsuite/tcp_ip
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv17527/core/protocolsuite/tcp_ip
Modified Files:
Tcp.java
Log Message:
TCP v0.95
Index: Tcp.java
===================================================================
RCS file: /cvsroot/javanetsim/javaNetSim/core/protocolsuite/tcp_ip/Tcp.java,v
retrieving revision 1.31
retrieving revision 1.32
diff -C2 -d -r1.31 -r1.32
*** Tcp.java 8 Dec 2005 21:33:26 -0000 1.31
--- Tcp.java 9 Dec 2005 14:50:35 -0000 1.32
***************
*** 970,978 ****
Elm.sent_segments++; //UNIQUE ID
Elm.seq_number++; //inc for next segment
! if (!(flags[4] && a_num==0)) Elm.sent_ACK++; //inc in case this is an ACK-segment (each segment except for 1-st SYN is ACK-segment)
//this.total_sent++; //overall stats
!
! //pushing a copy into Hashtable
! Elm.SegmentsToResend.put(new Integer(s_num), tosend_clone);
if (a_num==0 && flags[4]) //first SYN packet was sent => now he have to change port status to busy, as we will get reply to this port
--- 970,979 ----
Elm.sent_segments++; //UNIQUE ID
Elm.seq_number++; //inc for next segment
!
! if (!(flags[4] && a_num==0) && flags[1]) Elm.sent_ACK++; //inc in case this is an ACK-segment
//this.total_sent++; //overall stats
!
! //IF NOT ACK then pushing a copy into Hashtable
! if (!flags[1] || a_num<=1) Elm.SegmentsToResend.put(new Integer(s_num), tosend_clone);
if (a_num==0 && flags[4]) //first SYN packet was sent => now he have to change port status to busy, as we will get reply to this port
|