net.clackrouter.routing
Class LocalLinkInfo

java.lang.Object
  extended by net.clackrouter.routing.LocalLinkInfo

public class LocalLinkInfo
extends java.lang.Object

Data structure to hold information about a single link (i.e., an interface) that is directly connected to a router.


Field Summary
 java.net.InetAddress address
          IP address of this link's interface
 boolean is_routing_iface
          tells whether the router should be running a routing protocol with its neighbor on this link
 boolean is_up
          tells whether this interface is currently active or down
 java.lang.String local_iface
          name of the local interface
 int metric
          routing metric cost for using this link to reach its neighbor (note: this value is one-way)
 java.net.InetAddress next_hop
          IP address of the directly connected neighbor router interface
 java.net.InetAddress subnet_mask
          IP subnet mask for this link
 
Constructor Summary
LocalLinkInfo(java.net.InetAddress net, java.net.InetAddress msk, java.lang.String i, java.net.InetAddress nh, int m, boolean up, boolean is_routing)
           
 
Method Summary
static LocalLinkInfo copy(LocalLinkInfo old)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

address

public java.net.InetAddress address
IP address of this link's interface


subnet_mask

public java.net.InetAddress subnet_mask
IP subnet mask for this link


local_iface

public java.lang.String local_iface
name of the local interface


next_hop

public java.net.InetAddress next_hop
IP address of the directly connected neighbor router interface


metric

public int metric
routing metric cost for using this link to reach its neighbor (note: this value is one-way)


is_up

public boolean is_up
tells whether this interface is currently active or down


is_routing_iface

public boolean is_routing_iface
tells whether the router should be running a routing protocol with its neighbor on this link

Constructor Detail

LocalLinkInfo

public LocalLinkInfo(java.net.InetAddress net,
                     java.net.InetAddress msk,
                     java.lang.String i,
                     java.net.InetAddress nh,
                     int m,
                     boolean up,
                     boolean is_routing)
Method Detail

copy

public static LocalLinkInfo copy(LocalLinkInfo old)