Update of /cvsroot/javanetsim/javaNetSim/core
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv28129/core
Modified Files:
Node.java Simulation.java
Log Message:
Packet Counts for IP and ARP.
Index: Node.java
===================================================================
RCS file: /cvsroot/javanetsim/javaNetSim/core/Node.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** Node.java 19 Nov 2005 21:53:51 -0000 1.5
--- Node.java 3 Dec 2005 12:20:52 -0000 1.6
***************
*** 123,127 ****
protected java.util.Hashtable NetworkInterfacetable = null; //Hashtable of network interfaces
! protected ProtocolStack NodeProtocolStack;
protected String name;
--- 123,127 ----
protected java.util.Hashtable NetworkInterfacetable = null; //Hashtable of network interfaces
! public ProtocolStack NodeProtocolStack;
protected String name;
Index: Simulation.java
===================================================================
RCS file: /cvsroot/javanetsim/javaNetSim/core/Simulation.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** Simulation.java 20 Nov 2005 20:30:53 -0000 1.5
--- Simulation.java 3 Dec 2005 12:20:52 -0000 1.6
***************
*** 175,178 ****
--- 175,182 ----
+ public core.protocolsuite.tcp_ip.ProtocolStack getTCPProtocolStack(String inNodeName) {
+ Node temp = (Node)nodeTable.get(inNodeName);
+ return (core.protocolsuite.tcp_ip.ProtocolStack)temp.NodeProtocolStack;
+ }
/**
* This method is called from the GUI. Checks to see if inNodeName is an instance of networkLayerDevice,
|