| Package | Description |
|---|---|
| org.onlab.packet |
Utilities for decoding and encoding packets of various network protocols
and encapsulations.
|
| Modifier and Type | Method and Description |
|---|---|
Ip4Prefix |
IpPrefix.getIp4Prefix()
Gets the
Ip4Prefix view of the IP prefix. |
static Ip4Prefix |
Ip4Prefix.valueOf(byte[] address,
int prefixLength)
Converts a byte array and a prefix length into an IPv4 prefix.
|
static Ip4Prefix |
Ip4Prefix.valueOf(int address,
int prefixLength)
Converts an integer and a prefix length into an IPv4 prefix.
|
static Ip4Prefix |
Ip4Prefix.valueOf(Ip4Address address,
int prefixLength)
Converts an IPv4 address and a prefix length into an IPv4 prefix.
|
static Ip4Prefix |
Ip4Prefix.valueOf(String address)
Converts a CIDR (slash) notation string (e.g., "10.1.0.0/16")
into an IPv4 prefix.
|
Copyright © 2016. All rights reserved.