Class Ethernet
- java.lang.Object
-
- org.opendaylight.openflowplugin.libraries.liblldp.Packet
-
- org.opendaylight.genius.mdsalutil.packet.Ethernet
-
- Direct Known Subclasses:
IEEE8021Q
public class Ethernet extends org.opendaylight.openflowplugin.libraries.liblldp.Packet
Class that represents the Ethernet frame objects taken from opendaylight(helium) adsal bundle.
-
-
Field Summary
Fields Modifier and Type Field Description static java.util.Map<java.lang.Short,java.lang.Class<? extends org.opendaylight.openflowplugin.libraries.liblldp.Packet>>
etherTypeClassMap
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]
getDestinationMACAddress()
short
getEtherType()
byte[]
getSourceMACAddress()
Ethernet
setDestinationMACAddress(byte[] destinationMACAddress)
Ethernet
setEtherType(short etherType)
void
setHeaderField(java.lang.String headerField, byte[] readValue)
Ethernet
setSourceMACAddress(byte[] sourceMACAddress)
-
Methods inherited from class org.opendaylight.openflowplugin.libraries.liblldp.Packet
deserialize, equals, getfieldnumBits, getfieldOffset, getHeaderSize, getParent, getPayload, getRawPayload, hashCode, isCorrupted, postDeserializeCustomOperation, postSerializeCustomOperation, serialize, setParent, setPayload, setRawPayload, toString
-
-
-
-
Method Detail
-
setHeaderField
public void setHeaderField(java.lang.String headerField, byte[] readValue)
- Overrides:
setHeaderField
in classorg.opendaylight.openflowplugin.libraries.liblldp.Packet
-
getDestinationMACAddress
public byte[] getDestinationMACAddress()
-
getSourceMACAddress
public byte[] getSourceMACAddress()
-
getEtherType
public short getEtherType()
-
setDestinationMACAddress
public Ethernet setDestinationMACAddress(byte[] destinationMACAddress)
-
setSourceMACAddress
public Ethernet setSourceMACAddress(byte[] sourceMACAddress)
-
setEtherType
public Ethernet setEtherType(short etherType)
-
-