public class Ethernet extends Object implements Protocol
Ethernet.Builder
(mutable).
Includes support for the following OpenFlow match fields:
Modifier and Type | Class and Description |
---|---|
static class |
Ethernet.Builder
Builder (mutable) used to create new protocol instances.
|
static class |
Ethernet.Control
Control types.
|
static class |
Ethernet.Dsap
Destination service access point types.
|
static class |
Ethernet.SnapId
SNAP ID (vendor and local) data store (immutable).
|
static class |
Ethernet.Ssap
Source service access point types.
|
static class |
Ethernet.VlanPriority
VLAN Priorities.
|
Modifier and Type | Field and Description |
---|---|
static EthernetType |
NONE
Used to indicate 802.3 Snap packet types.
|
Modifier and Type | Method and Description |
---|---|
Ethernet.Control |
control()
Returns the control type (802.3 encodings).
|
Ethernet.Dsap |
dsap()
Returns the destination service access point (802.3 encodings).
|
MacAddress |
dstAddr()
Returns the destination address.
|
ProtocolId |
id()
Returns the protocol ID.
|
int |
len()
Returns the length in 802.3 packets.
|
Ethernet.SnapId |
snapId()
Returns the SNAP ID (802.3 encodings).
|
MacAddress |
srcAddr()
Returns the source address.
|
Ethernet.Ssap |
ssap()
Returns the source service access point (802.3 encodings).
|
String |
toDebugString()
Returns the protocol debug string.
|
String |
toString() |
EthernetType |
type()
Returns the Ethernet type.
|
boolean |
vlanDei()
Returns the VLAN Drop Eligibility Indicator flag.
|
int |
vlanId()
Returns the VLAN ID.
|
Ethernet.VlanPriority |
vlanPriority()
Returns the VLAN priority.
|
public static final EthernetType NONE
public ProtocolId id()
Protocol
public MacAddress dstAddr()
public MacAddress srcAddr()
public EthernetType type()
public int len()
public int vlanId()
public boolean vlanDei()
public Ethernet.VlanPriority vlanPriority()
public Ethernet.Dsap dsap()
public Ethernet.Ssap ssap()
public Ethernet.Control control()
public Ethernet.SnapId snapId()
public String toDebugString()
Protocol
toDebugString
in interface Protocol
Copyright © 2015. All Rights Reserved.