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.PacketClass 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.util.function.Supplier<org.opendaylight.openflowplugin.libraries.liblldp.Packet>>etherTypeClassMap
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]getDestinationMACAddress()shortgetEtherType()byte[]getSourceMACAddress()EthernetsetDestinationMACAddress(byte[] destinationMACAddress)EthernetsetEtherType(short etherType)voidsetHeaderField(java.lang.String headerField, byte[] readValue)EthernetsetSourceMACAddress(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:
setHeaderFieldin 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)
-
-