|
SunSPOT API V6.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.spot.ipv6.routing.IPRouteEntry
public class IPRouteEntry
Class for a single route entry in the IP routing table. A route entry consists of a routing prefix and the IP address of the next-hop router responsible for handling traffic to that network from this local network.
| Field Summary | |
|---|---|
static int |
DEFAULT_SUBNET_BITS
|
static IIPNetworkInterface |
DEVICE_UNKNOWN
|
static int |
ROUTE_DYNAMIC
|
static int |
ROUTE_LOCAL
|
static int |
ROUTE_NDRD
|
static int |
ROUTE_STATIC
|
static String[] |
RouteType
|
| Constructor Summary | |
|---|---|
IPRouteEntry(byte[] dest,
int mask,
byte[] gw,
int rt)
|
|
IPRouteEntry(byte[] dest,
int mask,
byte[] gw,
int rt,
IIPNetworkInterface iface)
|
|
| Method Summary | |
|---|---|
int |
compare(Object o)
|
protected boolean |
contains(byte[] address)
|
int |
getDestinationMask()
|
byte[] |
getDestinationNetwork()
|
byte[] |
getGatewayAddress()
returns the gateway address associated with this route entry |
IIPNetworkInterface |
getNetworkInterface()
|
int |
getType()
|
String |
getTypeString()
|
static String |
getTypeString(int t)
|
protected void |
setDestinationNetwork(byte[] dest,
int mask)
|
protected void |
setGatewayAddress(byte[] newGW)
Set the gateway address associated with this route entry |
String |
toString()
Returns a string representation of the object. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int DEFAULT_SUBNET_BITS
public static final IIPNetworkInterface DEVICE_UNKNOWN
public static String[] RouteType
public static final int ROUTE_LOCAL
public static final int ROUTE_STATIC
public static final int ROUTE_NDRD
public static final int ROUTE_DYNAMIC
| Constructor Detail |
|---|
public IPRouteEntry(byte[] dest,
int mask,
byte[] gw,
int rt)
public IPRouteEntry(byte[] dest,
int mask,
byte[] gw,
int rt,
IIPNetworkInterface iface)
| Method Detail |
|---|
protected void setGatewayAddress(byte[] newGW)
newGW - the new gateway addresspublic byte[] getGatewayAddress()
protected void setDestinationNetwork(byte[] dest,
int mask)
public byte[] getDestinationNetwork()
public int getDestinationMask()
public static String getTypeString(int t)
public String getTypeString()
public int getType()
public IIPNetworkInterface getNetworkInterface()
public String toString()
ObjecttoString method returns a string that
"textually represents" this object. The result should
be a concise but informative representation that is easy for a
person to read.
It is recommended that all subclasses override this method.
The toString method for class Object
returns a string consisting of the name of the class of which the
object is an instance, the at-sign character `@', and
the unsigned hexadecimal representation of the hash code of the
object. In other words, this method returns a string equal to the
value of:
getClass().getName() + '@' + Integer.toHexString(hashCode())
toString in class Objectprotected boolean contains(byte[] address)
public int compare(Object o)
compare in interface Comparable
|
SunSPOT API V6.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||