SSF.Net
Class RoutingInfo

java.lang.Object
  |
  +--SSF.Net.RoutingInfo

public synchronized class RoutingInfo
extends java.lang.Object


Field Summary
protected  int ADIST
           
protected  int COST
           
 java.lang.String DEST_IP
           
protected  NIC INTERFACE
           
protected  int NEXT_HOP_IP
           
protected  RoutingInfo nextRoute
           
protected  java.lang.String PROTOCOL
           
static int UNDEFINED_ADMINISTRATIVE_DISTANCE
           
 
Constructor Summary
RoutingInfo(java.lang.String, int, NIC, int, int, java.lang.String)
           
 
Method Summary
 RoutingInfo addRoute(RoutingInfo)
           
static int approxBytes()
           
static int bytes2info(java.lang.StringBuffer, byte[], int, boolean)
           
private static java.lang.String decodeSource(byte)
           
private static byte encodeSource(java.lang.String)
           
 RoutingInfo findRouteFrom(java.lang.String)
           
 RoutingInfo[] findRoutesFrom(java.lang.String)
           
 NIC next_hop_interface()
           
 int next_hop_ip()
           
 RoutingInfo removeRoute(RoutingInfo)
           
 RoutingInfo removeRoutesFrom(java.lang.String)
           
 int toBytes(byte[], int, boolean, Net)
           
 java.lang.String toString()
           
 java.lang.String toString(boolean, Net)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

DEST_IP

public java.lang.String DEST_IP

NEXT_HOP_IP

protected int NEXT_HOP_IP

INTERFACE

protected NIC INTERFACE

COST

protected int COST

ADIST

protected int ADIST

nextRoute

protected RoutingInfo nextRoute

PROTOCOL

protected java.lang.String PROTOCOL

UNDEFINED_ADMINISTRATIVE_DISTANCE

public static final int UNDEFINED_ADMINISTRATIVE_DISTANCE
See Also:
Constant Field Values
Constructor Detail

RoutingInfo

public RoutingInfo(java.lang.String,
                   int,
                   NIC,
                   int,
                   int,
                   java.lang.String)
Method Detail

next_hop_ip

public final int next_hop_ip()

addRoute

public RoutingInfo addRoute(RoutingInfo)

removeRoute

public RoutingInfo removeRoute(RoutingInfo)

removeRoutesFrom

public RoutingInfo removeRoutesFrom(java.lang.String)

findRoutesFrom

public RoutingInfo[] findRoutesFrom(java.lang.String)

findRouteFrom

public RoutingInfo findRouteFrom(java.lang.String)

next_hop_interface

public final NIC next_hop_interface()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

toString

public java.lang.String toString(boolean,
                                 Net)

toBytes

public int toBytes(byte[],
                   int,
                   boolean,
                   Net)

approxBytes

public static int approxBytes()

bytes2info

public static int bytes2info(java.lang.StringBuffer,
                             byte[],
                             int,
                             boolean)

decodeSource

private static java.lang.String decodeSource(byte)

encodeSource

private static byte encodeSource(java.lang.String)