| 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 |
protected MacAddress |
Ethernet.destinationMACAddress |
protected MacAddress |
Ethernet.sourceMACAddress |
static MacAddress |
MacAddress.ZERO |
| 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 |
|---|---|
Ethernet |
Ethernet.setDestinationMACAddress(MacAddress destMac)
Sets the destination MAC address.
|
Ethernet |
Ethernet.setSourceMACAddress(MacAddress sourceMac)
Sets the source MAC address.
|
Copyright © 2015. All rights reserved.