Class 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.util.function.Supplier<org.opendaylight.openflowplugin.libraries.liblldp.Packet>> etherTypeClassMap  
      • Fields inherited from class org.opendaylight.openflowplugin.libraries.liblldp.Packet

        corrupted, hdrFieldCoordMap, hdrFieldsMap, parent, payload, payloadFactory, rawPayload, writeAccess
    • Constructor Summary

      Constructors 
      Constructor 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.
    • Field Detail

      • etherTypeClassMap

        public static final java.util.Map<java.lang.Short,​java.util.function.Supplier<org.opendaylight.openflowplugin.libraries.liblldp.Packet>> etherTypeClassMap
    • Constructor Detail

      • Ethernet

        public Ethernet()
        Default constructor that creates and sets the HashMap.
      • Ethernet

        public Ethernet​(boolean writeAccess)
        Constructor that sets the access level for the packet and creates and sets the HashMap.
        Parameters:
        writeAccess - boolean
    • Method Detail

      • setHeaderField

        public void setHeaderField​(java.lang.String headerField,
                                   byte[] readValue)
        Overrides:
        setHeaderField in class org.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)