| Package | Description |
|---|---|
| org.onlab.packet |
Utilities for decoding and encoding packets of various network protocols
and encapsulations.
|
| Modifier and Type | Method and Description |
|---|---|
Ip4Address |
Ip4Prefix.address()
Returns the IPv4 address value of the prefix.
|
Ip4Address |
IpAddress.getIp4Address()
Gets the
Ip4Address view of the IP address. |
static Ip4Address |
Ip4Address.makeMaskedAddress(Ip4Address address,
int prefixLength)
Creates an IPv4 address by masking it with a network mask of given
mask length.
|
static Ip4Address |
Ip4Address.makeMaskPrefix(int prefixLength)
Creates an IPv4 network mask prefix.
|
static Ip4Address |
Ip4Address.valueOf(byte[] value)
Converts a byte array into an IPv4 address.
|
static Ip4Address |
Ip4Address.valueOf(byte[] value,
int offset)
Converts a byte array and a given offset from the beginning of the
array into an IPv4 address.
|
static Ip4Address |
Ip4Address.valueOf(InetAddress inetAddress)
Converts an InetAddress into an IPv4 address.
|
static Ip4Address |
Ip4Address.valueOf(int value)
Converts an integer into an IPv4 address.
|
static Ip4Address |
Ip4Address.valueOf(String value)
Converts an IPv4 string literal (e.g., "10.2.3.4") into an IP address.
|
| Modifier and Type | Method and Description |
|---|---|
static Ethernet |
ARP.buildArpReply(Ip4Address srcIp,
MacAddress srcMac,
Ethernet request)
Builds an ARP reply based on a request.
|
static Ip4Address |
Ip4Address.makeMaskedAddress(Ip4Address address,
int prefixLength)
Creates an IPv4 address by masking it with a network mask of given
mask length.
|
static Ip4Prefix |
Ip4Prefix.valueOf(Ip4Address address,
int prefixLength)
Converts an IPv4 address and a prefix length into an IPv4 prefix.
|
| Constructor and Description |
|---|
IGMPMembership(Ip4Address gaddr)
Constructor initialized with a multicast group address.
|
Copyright © 2016. All rights reserved.