| Package | Description |
|---|---|
| org.onlab.packet |
Utilities for decoding and encoding packets of various network protocols
and encapsulations.
|
| Modifier and Type | Field and Description |
|---|---|
static IpAddress.Version |
Ip6Prefix.VERSION |
static IpAddress.Version |
Ip6Address.VERSION |
static IpAddress.Version |
Ip4Prefix.VERSION |
static IpAddress.Version |
Ip4Address.VERSION |
| Modifier and Type | Method and Description |
|---|---|
static IpAddress.Version |
IpAddress.Version.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static IpAddress.Version[] |
IpAddress.Version.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
IpAddress.Version |
IpPrefix.version()
Returns the IP version of the prefix.
|
IpAddress.Version |
IpAddress.version()
Returns the IP version of this address.
|
| Modifier and Type | Method and Description |
|---|---|
static int |
IpAddress.byteLength(IpAddress.Version version)
Computes the IP address byte length for a given IP version.
|
static IpAddress |
IpAddress.makeMaskPrefix(IpAddress.Version version,
int prefixLength)
Creates an IP network mask prefix.
|
static IpAddress |
IpAddress.valueOf(IpAddress.Version version,
byte[] value)
Converts a byte array into an IP address.
|
static IpPrefix |
IpPrefix.valueOf(IpAddress.Version version,
byte[] address,
int prefixLength)
Converts a byte array and a prefix length into an IP prefix.
|
static IpAddress |
IpAddress.valueOf(IpAddress.Version version,
byte[] value,
int offset)
Converts a byte array and a given offset from the beginning of the
array into an IP address.
|
| Constructor and Description |
|---|
IpAddress(IpAddress.Version version,
byte[] value)
Constructor for given IP address version and address octets.
|
Copyright © 2016. All rights reserved.