Update of /cvsroot/javanetsim/javaNetSim/core
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3906/core
Modified Files:
NetworkLayerDevice.java Node.java PC.java
Log Message:
Index: PC.java
===================================================================
RCS file: /cvsroot/javanetsim/javaNetSim/core/PC.java,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -d -r1.8 -r1.9
*** PC.java 22 Feb 2006 16:29:29 -0000 1.8
--- PC.java 22 Feb 2006 20:04:27 -0000 1.9
***************
*** 113,122 ****
Echo_tcp echotcpClient = new Echo_tcp(NodeProtocolStack, 0, 0, core.ProtocolStack.UIDGen++);
Telnet_server telnetServer = new Telnet_server(NodeProtocolStack, 23, 1, core.ProtocolStack.UIDGen++);
Telnet_client telnetClient = new Telnet_client(NodeProtocolStack, 0, 0, core.ProtocolStack.UIDGen++);
-
- SNMP snmpAgent = new SNMP(NodeProtocolStack, 161, 0, core.ProtocolStack.UIDGen++);
- SNMP snmpManager = new SNMP(NodeProtocolStack, 0, 1, core.ProtocolStack.UIDGen++);
addApp(echoServer, 7);
--- 113,122 ----
Echo_tcp echotcpClient = new Echo_tcp(NodeProtocolStack, 0, 0, core.ProtocolStack.UIDGen++);
+ SNMP snmpAgent = new SNMP((ApplicationLayerDevice)this, NodeProtocolStack, 161, 0, core.ProtocolStack.UIDGen++);
+ SNMP snmpManager = new SNMP((ApplicationLayerDevice)this, NodeProtocolStack, 0, 1, core.ProtocolStack.UIDGen++);
+
Telnet_server telnetServer = new Telnet_server(NodeProtocolStack, 23, 1, core.ProtocolStack.UIDGen++);
Telnet_client telnetClient = new Telnet_client(NodeProtocolStack, 0, 0, core.ProtocolStack.UIDGen++);
addApp(echoServer, 7);
Index: NetworkLayerDevice.java
===================================================================
RCS file: /cvsroot/javanetsim/javaNetSim/core/NetworkLayerDevice.java,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** NetworkLayerDevice.java 8 Dec 2005 16:45:08 -0000 1.6
--- NetworkLayerDevice.java 22 Feb 2006 20:04:27 -0000 1.7
***************
*** 205,209 ****
*/
! protected String setIPAddress(String inInterface, String inIPAddress) throws InvalidNetworkInterfaceNameException,InvalidIPAddressException {
String macAddress = null;
if (NetworkInterfacetable.containsKey(inInterface)) {
--- 205,209 ----
*/
! public String setIPAddress(String inInterface, String inIPAddress) throws InvalidNetworkInterfaceNameException,InvalidIPAddressException {
String macAddress = null;
if (NetworkInterfacetable.containsKey(inInterface)) {
Index: Node.java
===================================================================
RCS file: /cvsroot/javanetsim/javaNetSim/core/Node.java,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** Node.java 3 Dec 2005 12:20:52 -0000 1.6
--- Node.java 22 Feb 2006 20:04:27 -0000 1.7
***************
*** 562,565 ****
--- 562,575 ----
else return null;
}
+
+ /**
+ * Gets the name of the Node.
+ * @author luke_hamilton
+ * @return The name of the Node.
+ * @version v0.20
+ */
+ public void setName(String inName) {
+ name=inName;
+ }
}//EOF
|