| Package | Description |
|---|---|
| org.onlab.packet |
Utilities for decoding and encoding packets of various network protocols
and encapsulations.
|
| Modifier and Type | Class and Description |
|---|---|
class |
Ip4Prefix
The class representing an IPv4 network address.
|
class |
Ip6Prefix
The class representing an IPv6 network address.
|
| Modifier and Type | Method and Description |
|---|---|
static IpPrefix |
IpPrefix.valueOf(int address,
int prefixLength)
Converts an integer and a prefix length into an IPv4 prefix.
|
static IpPrefix |
IpPrefix.valueOf(IpAddress.Version version,
byte[] address,
int prefixLength)
Converts a byte array and a prefix length into an IP prefix.
|
static IpPrefix |
IpPrefix.valueOf(IpAddress address,
int prefixLength)
Converts an IP address and a prefix length into an IP prefix.
|
static IpPrefix |
IpPrefix.valueOf(String address)
Converts a CIDR (slash) notation string (e.g., "10.1.0.0/16" or
"1111:2222::/64") into an IP prefix.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
IpPrefix.contains(IpPrefix other)
Determines whether a given IP prefix is contained within this prefix.
|
Copyright © 2015. All rights reserved.