Update of /cvsroot/javanetsim/javaNetSim/core/protocolsuite/tcp_ip
In directory fdv4jf1.ch3.sourceforge.com:/tmp/cvs-serv27263/core/protocolsuite/tcp_ip
Modified Files:
IpV4.java ProtocolStack.java
Log Message:
Index: ProtocolStack.java
===================================================================
RCS file: /cvsroot/javanetsim/javaNetSim/core/protocolsuite/tcp_ip/ProtocolStack.java,v
retrieving revision 1.69
retrieving revision 1.70
diff -C2 -d -r1.69 -r1.70
*** ProtocolStack.java 3 Oct 2008 22:29:10 -0000 1.69
--- ProtocolStack.java 5 Oct 2008 19:12:31 -0000 1.70
***************
*** 137,141 ****
mARPprotocol = new ARP(this);
! mIPprotocol = new IpV4();
mICMPprotocol = new ICMP(this);
--- 137,141 ----
mARPprotocol = new ARP(this);
! mIPprotocol = new IpV4((NetworkLayerDevice)node);
mICMPprotocol = new ICMP(this);
***************
*** 148,152 ****
mARPprotocol = new ARP(this);
! mIPprotocol = new IpV4(); // Currnetly only using IPv4 protocol
mICMPprotocol = new ICMP(this);
--- 148,152 ----
mARPprotocol = new ARP(this);
! mIPprotocol = new IpV4((NetworkLayerDevice)node); // Currnetly only using IPv4 protocol
mICMPprotocol = new ICMP(this);
Index: IpV4.java
===================================================================
RCS file: /cvsroot/javanetsim/javaNetSim/core/protocolsuite/tcp_ip/IpV4.java,v
retrieving revision 1.13
retrieving revision 1.14
diff -C2 -d -r1.13 -r1.14
*** IpV4.java 23 Sep 2008 15:22:14 -0000 1.13
--- IpV4.java 5 Oct 2008 19:12:31 -0000 1.14
***************
*** 1,64 ****
/*
! Java Firewall Simulator (jFirewallSim)
!
!
!
! Copyright (c) 2004, jFirewallSim development team All rights reserved.
!
[...1690 lines suppressed...]
! * @version v0.20
! *
! */
! public String getIPAddress(String inInterfaceKey) {
! if (ipAddress.containsKey(inInterfaceKey)) {
! IPV4Address temp = (IPV4Address) ipAddress.get(inInterfaceKey);
! return temp.getDecimalIp();
! }
! return null;
! }
! }// EOF
|