| Package | Description |
|---|---|
| org.onlab.packet |
Utilities for decoding and encoding packets of various network protocols
and encapsulations.
|
| Modifier and Type | Field and Description |
|---|---|
static MacAddress |
MacAddress.BROADCAST
Broadcast MAC address.
|
protected MacAddress |
Ethernet.destinationMACAddress |
static MacAddress |
MacAddress.IPV4_MULTICAST
IPv4 multicast MAC address.
|
static MacAddress |
MacAddress.IPV4_MULTICAST_MASK
IPv4 multicast MAC mask.
|
static MacAddress |
MacAddress.NONE
Dummy MAC address.
|
static MacAddress |
EAPOL.PAE_GROUP_ADDR |
protected MacAddress |
Ethernet.sourceMACAddress |
static MacAddress |
MacAddress.ZERO
All-zero MAC address.
|
| Modifier and Type | Method and Description |
|---|---|
MacAddress |
Ethernet.getDestinationMAC()
Gets the destination MAC address.
|
MacAddress |
Ethernet.getSourceMAC()
Gets the source MAC address.
|
static MacAddress |
MacAddress.valueOf(byte[] address)
Returns a MAC address instance representing the specified
byte
array. |
static MacAddress |
MacAddress.valueOf(long address)
Returns a MAC address instance representing the specified
long
value. |
static MacAddress |
MacAddress.valueOf(String address)
Returns a MAC address instance representing the value of the specified
String. |
| Modifier and Type | Method and Description |
|---|---|
static Ethernet |
ARP.buildArpReply(Ip4Address srcIp,
MacAddress srcMac,
Ethernet request)
Builds an ARP reply based on a request.
|
Ethernet |
Ethernet.setDestinationMACAddress(MacAddress destMac)
Sets the destination MAC address.
|
Ethernet |
Ethernet.setSourceMACAddress(MacAddress sourceMac)
Sets the source MAC address.
|
Copyright © 2016. All rights reserved.