Update of /cvsroot/javanetsim/javaNetSim/core/protocolsuite/tcp_ip
In directory sc8-pr-cvs6.sourceforge.net:/tmp/cvs-serv12626/core/protocolsuite/tcp_ip
Modified Files:
Tcp.java
Log Message:
SEQ and ACK for now
Index: Tcp.java
===================================================================
RCS file: /cvsroot/javanetsim/javaNetSim/core/protocolsuite/tcp_ip/Tcp.java,v
retrieving revision 1.56
retrieving revision 1.57
diff -C2 -d -r1.56 -r1.57
*** Tcp.java 2 Sep 2006 16:38:34 -0000 1.56
--- Tcp.java 2 Sep 2006 16:45:12 -0000 1.57
***************
*** 1016,1023 ****
String s=new String();
! if (flags[4]) s="Created TCP SYN-packet for " + inDestIPAddress + ":" + indestPort +"." + "(SEQ=" + s_num + ")";
! if (flags[5]) s="Created TCP FIN-packet for " + inDestIPAddress + ":" + indestPort +"." + "(SEQ=" + s_num + ")";
! if (!(flags[4] || flags[5])) s="Created TCP data packet for " + inDestIPAddress + ":" + indestPort +"." + "(SEQ=" + s_num + ")";
! if (!(flags[4] || flags[5]) && flags[1]) s="Created TCP acknowledgement packet for " + inDestIPAddress + ":" + indestPort +"." + "(SEQ=" + s_num + ")";
TCP_Info.setDescription(s);
Simulation.addLayerInfo(TCP_Info);
--- 1016,1023 ----
String s=new String();
! if (flags[4]) s="Created TCP SYN-packet for " + inDestIPAddress + ":" + indestPort +"." + "(SEQ=" + s_num + " ACK = " + a_num +")";
! if (flags[5]) s="Created TCP FIN-packet for " + inDestIPAddress + ":" + indestPort +"." + "(SEQ=" + s_num + " ACK = " + a_num +")";
! if (!(flags[4] || flags[5])) s="Created TCP data packet for " + inDestIPAddress + ":" + indestPort +"." + "(SEQ=" + s_num + " ACK = " + a_num +")";
! if (!(flags[4] || flags[5]) && flags[1]) s="Created TCP acknowledgement packet for " + inDestIPAddress + ":" + indestPort +"." + "(SEQ=" + s_num + " ACK = " + a_num +")";
TCP_Info.setDescription(s);
Simulation.addLayerInfo(TCP_Info);
|