|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.clackrouter.routing.LocalLinkInfo
public class LocalLinkInfo
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 |
---|
public java.net.InetAddress address
public java.net.InetAddress subnet_mask
public java.lang.String local_iface
public java.net.InetAddress next_hop
public int metric
public boolean is_up
public boolean is_routing_iface
Constructor Detail |
---|
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 |
---|
public static LocalLinkInfo copy(LocalLinkInfo old)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |