Update of /cvsroot/javanetsim/javaNetSim/core/protocolsuite/tcp_ip
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6767/core/protocolsuite/tcp_ip
Modified Files:
Echo.java Echo_tcp.java SNMP.java Udp.java
Log Message:
UDP counter bug fixed
Index: Echo_tcp.java
===================================================================
RCS file: /cvsroot/javanetsim/javaNetSim/core/protocolsuite/tcp_ip/Echo_tcp.java,v
retrieving revision 1.19
retrieving revision 1.20
diff -C2 -d -r1.19 -r1.20
*** Echo_tcp.java 8 Dec 2005 20:32:52 -0000 1.19
--- Echo_tcp.java 1 Feb 2006 21:38:59 -0000 1.20
***************
*** 254,257 ****
--- 254,279 ----
}
+ /**
+ * This method recieves source IP of a packet
+ * @param data to receive
+ * @author gift (sourceforge.net user)
+ * @version v0.01
+ */
+ public void RecvIP(String IP) throws LowLinkException, TransportLayerException
+ {
+
+ }
+
+ /**
+ * This method recieves source port number of a packet
+ * @param data to receive
+ * @author gift (sourceforge.net user)
+ * @version v0.01
+ */
+ public void RecvPrt(int port_num) throws LowLinkException, TransportLayerException
+ {
+
+ }
+
}
Index: Udp.java
===================================================================
RCS file: /cvsroot/javanetsim/javaNetSim/core/protocolsuite/tcp_ip/Udp.java,v
retrieving revision 1.32
retrieving revision 1.33
diff -C2 -d -r1.32 -r1.33
*** Udp.java 10 Jan 2006 16:23:01 -0000 1.32
--- Udp.java 1 Feb 2006 21:38:59 -0000 1.33
***************
*** 254,257 ****
--- 254,259 ----
Simulation.addLayerInfo(UDP_Info);
+ IncReceivedDatagrammsNumber();
+
listener = (Application)Elm.application;
listener.RecvIP(inPacket.getSourceIPAddress());
Index: Echo.java
===================================================================
RCS file: /cvsroot/javanetsim/javaNetSim/core/protocolsuite/tcp_ip/Echo.java,v
retrieving revision 1.17
retrieving revision 1.18
diff -C2 -d -r1.17 -r1.18
*** Echo.java 8 Dec 2005 20:10:56 -0000 1.17
--- Echo.java 1 Feb 2006 21:38:59 -0000 1.18
***************
*** 208,211 ****
--- 208,236 ----
}
+ /**
+ * This method recieves source IP of a packet
+ * @param data to receive
+ * @author gift (sourceforge.net user)
+ * @version v0.01
+ */
+ public void RecvIP(String IP) throws LowLinkException, TransportLayerException
+ {
+
+ }
+
+ /**
+ * This method recieves source port number of a packet
+ * @param data to receive
+ * @author gift (sourceforge.net user)
+ * @version v0.01
+ */
+ public void RecvPrt(int port_num) throws LowLinkException, TransportLayerException
+ {
+
+ }
+
+
+
+
}
Index: SNMP.java
===================================================================
RCS file: /cvsroot/javanetsim/javaNetSim/core/protocolsuite/tcp_ip/SNMP.java,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** SNMP.java 9 Dec 2005 23:30:33 -0000 1.6
--- SNMP.java 1 Feb 2006 21:38:59 -0000 1.7
***************
*** 778,780 ****
--- 778,802 ----
}
}
+
+ /**
+ * This method recieves source IP of a packet
+ * @param data to receive
+ * @author gift (sourceforge.net user)
+ * @version v0.01
+ */
+ public void RecvIP(String IP) throws LowLinkException, TransportLayerException
+ {
+
+ }
+
+ /**
+ * This method recieves source port number of a packet
+ * @param data to receive
+ * @author gift (sourceforge.net user)
+ * @version v0.01
+ */
+ public void RecvPrt(int port_num) throws LowLinkException, TransportLayerException
+ {
+
+ }
}
|