| Package | Description |
|---|---|
| org.onlab.packet |
Utilities for decoding and encoding packets of various network protocols
and encapsulations.
|
| Modifier and Type | Class and Description |
|---|---|
class |
Ip4Address
A class representing an IPv4 address.
|
class |
Ip6Address
A class representing an IPv6 address.
|
| Modifier and Type | Method and Description |
|---|---|
IpAddress |
IpPrefix.address()
Returns the IP address value of the prefix.
|
static IpAddress |
IpAddress.makeMaskedAddress(IpAddress address,
int prefixLength)
Creates an IP address by masking it with a network mask of given
mask length.
|
static IpAddress |
IpAddress.makeMaskPrefix(IpAddress.Version version,
int prefixLength)
Creates an IP network mask prefix.
|
static IpAddress |
IpAddress.valueOf(InetAddress inetAddress)
Converts an InetAddress into an IP address.
|
static IpAddress |
IpAddress.valueOf(int value)
Converts an integer into an IPv4 address.
|
static IpAddress |
IpAddress.valueOf(IpAddress.Version version,
byte[] value)
Converts a byte array into an IP address.
|
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.
|
static IpAddress |
IpAddress.valueOf(String value)
Converts an IPv4 or IPv6 string literal (e.g., "10.2.3.4" or
"1111:2222::8888") into an IP address.
|
| Modifier and Type | Method and Description |
|---|---|
int |
IpAddress.compareTo(IpAddress o) |
boolean |
IpPrefix.contains(IpAddress other)
Determines whether a given IP address is contained within this prefix.
|
static IpAddress |
IpAddress.makeMaskedAddress(IpAddress address,
int prefixLength)
Creates an IP address by masking it with a network mask of given
mask length.
|
static IpPrefix |
IpPrefix.valueOf(IpAddress address,
int prefixLength)
Converts an IP address and a prefix length into an IP prefix.
|
| Constructor and Description |
|---|
IpPrefix(IpAddress address,
int prefixLength)
Constructor for given IP address, and a prefix length.
|
Copyright © 2014. All rights reserved.