|
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.IPUtils
public class IPUtils
General routines for working iwth IPv6 packets and addresses
| Constructor Summary | |
|---|---|
IPUtils()
|
|
| Method Summary | |
|---|---|
static String |
addressToString(byte[] address)
|
static int |
compare(byte[] ipaddress,
byte[] test)
|
static byte[] |
createNetmask(int bits)
|
static boolean |
equals(byte[] arr1,
byte[] arr2)
|
protected static byte[] |
getMyLinkLocalAddress(byte[] linkAddress)
A routine to create an Inet6Address with our link local address |
static byte[] |
getMyLinkLocalAddress(IEEEAddress addr)
|
static byte[] |
getNetworkPart(byte[] addr,
int bits)
|
static String |
hex16(int data)
|
static String |
hex8(int data)
|
static Inet6Address |
ieeeToIPv6Address(String target)
|
static boolean |
isAnyLocalAddress(byte[] ipaddress)
Utility routine to check if the InetAddress in a wildcard address. |
static boolean |
isGlobal(byte[] ipaddress)
Utility routine to check if the address is a multicast. |
static boolean |
isLinkLocalAddress(byte[] ipaddress)
Utility routine to check if the InetAddress is an link local address. |
static boolean |
isLoopbackAddress(byte[] ipaddress)
Utility routine to check if the InetAddress is a loopbackAddress address. |
static boolean |
isMC(byte[] ipaddress)
Utility routine to check if the address is a multicast. |
static boolean |
isMCLinkLocal(byte[] ipaddress)
Utility routine to check if the multicast address has link scope. |
static boolean |
isMulticastAddress(byte[] ipaddress)
Utility routine to check if the InetAddress is an IP multicast address. 11111111 at the start of the address identifies the address as being a multicast address. |
static byte[] |
macAddressToEUI64(byte[] a)
|
static Inet6Address |
parseInet6Address(String address)
|
static int |
parseInet6Netmask(String address)
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public IPUtils()
| Method Detail |
|---|
public static byte[] getMyLinkLocalAddress(IEEEAddress addr)
protected static byte[] getMyLinkLocalAddress(byte[] linkAddress)
public static byte[] getNetworkPart(byte[] addr,
int bits)
public static Inet6Address parseInet6Address(String address)
public static int parseInet6Netmask(String address)
public static byte[] createNetmask(int bits)
public static boolean equals(byte[] arr1,
byte[] arr2)
public static int compare(byte[] ipaddress,
byte[] test)
public static String hex8(int data)
public static String hex16(int data)
public static boolean isMC(byte[] ipaddress)
boolean indicating if the address
is a multicast address, false if it is not
not a multicast addresspublic static boolean isGlobal(byte[] ipaddress)
boolean indicating if the address
is a globally routable address, false if it is not
not a multicast addresspublic static boolean isMCLinkLocal(byte[] ipaddress)
boolean indicating if the address has
is a multicast address of link-local scope, false if it is not
of link-local scope or it is not a multicast addresspublic static boolean isLinkLocalAddress(byte[] ipaddress)
boolean indicating if the InetAddress is
a link local address; or false if address is not a link local unicast address.public static boolean isAnyLocalAddress(byte[] ipaddress)
boolean indicating if the Inetaddress is
a wildcard address.public static boolean isLoopbackAddress(byte[] ipaddress)
boolean indicating if the InetAddress is
a loopbackAddress address; or false otherwise.public static boolean isMulticastAddress(byte[] ipaddress)
boolean indicating if the InetAddress is
an IP multicast addresspublic static String addressToString(byte[] address)
public static byte[] macAddressToEUI64(byte[] a)
public static Inet6Address ieeeToIPv6Address(String target)
|
SunSPOT API V6.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||