Update of /cvsroot/javanetsim/javaNetSim/core
In directory sc8-pr-cvs6.sourceforge.net:/tmp/cvs-serv22112/core
Modified Files:
Switch.java
Log Message:
Index: Switch.java
===================================================================
RCS file: /cvsroot/javanetsim/javaNetSim/core/Switch.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** Switch.java 12 Oct 2006 17:38:41 -0000 1.4
--- Switch.java 12 Oct 2006 17:55:11 -0000 1.5
***************
*** 86,89 ****
--- 86,100 ----
public void Reset(){
sz = 0;
+ Enumeration it, it2;
+ String nic = "";
+
+ it = NetworkInterfacetable.elements();
+
+ while(it.hasMoreElements()){
+ NetworkInterface tempInterface = (NetworkInterface)it.nextElement();
+ nic = tempInterface.getName();
+ Hashtable outInt = (Hashtable) IntCaches.get(nic);
+ outInt.clear();
+ }
}
|