public class Ethernet
extends org.opendaylight.openflowplugin.libraries.liblldp.Packet
Modifier and Type | Field and Description |
---|---|
static Map<Short,Class<? extends org.opendaylight.openflowplugin.libraries.liblldp.Packet>> |
etherTypeClassMap |
Constructor and Description |
---|
Ethernet()
Default constructor that creates and sets the HashMap.
|
Ethernet(boolean writeAccess)
Constructor that sets the access level for the packet and
creates and sets the HashMap.
|
Modifier and Type | Method and Description |
---|---|
byte[] |
getDestinationMACAddress() |
short |
getEtherType() |
byte[] |
getSourceMACAddress() |
Ethernet |
setDestinationMACAddress(byte[] destinationMACAddress) |
Ethernet |
setEtherType(short etherType) |
void |
setHeaderField(String headerField,
byte[] readValue) |
Ethernet |
setSourceMACAddress(byte[] sourceMACAddress) |
deserialize, equals, getfieldnumBits, getfieldOffset, getHeaderSize, getParent, getPayload, getRawPayload, hashCode, isCorrupted, postDeserializeCustomOperation, postSerializeCustomOperation, serialize, setParent, setPayload, setRawPayload, toString
public Ethernet()
public Ethernet(boolean writeAccess)
writeAccess
- booleanpublic void setHeaderField(String headerField, byte[] readValue)
setHeaderField
in class org.opendaylight.openflowplugin.libraries.liblldp.Packet
public byte[] getDestinationMACAddress()
public byte[] getSourceMACAddress()
public short getEtherType()
public Ethernet setDestinationMACAddress(byte[] destinationMACAddress)
public Ethernet setSourceMACAddress(byte[] sourceMACAddress)
public Ethernet setEtherType(short etherType)
Copyright © 2019 OpenDaylight. All rights reserved.