Class Ethernet
java.lang.Object
org.opendaylight.openflowplugin.libraries.liblldp.Packet
org.opendaylight.openflowplugin.libraries.liblldp.Ethernet
Class that represents the Ethernet frame objects.
- 
Field SummaryFields inherited from class org.opendaylight.openflowplugin.libraries.liblldp.Packetcorrupted, hdrFieldCoordMap, hdrFieldsMap, parent, payload, payloadFactory, rawPayload, writeAccess
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionbyte[]Gets the destination MAC address stored.shortGets the etherType stored.byte[]Gets the source MAC address stored.booleanbooleansetDestinationMACAddress(byte[] destinationMACAddress) Sets the destination MAC address for the current Ethernet object instance.setEtherType(short etherType) Sets the etherType for the current Ethernet object instance.voidsetHeaderField(String headerField, byte[] readValue) setSourceMACAddress(byte[] sourceMACAddress) Sets the source MAC address for the current Ethernet object instance.Methods inherited from class org.opendaylight.openflowplugin.libraries.liblldp.Packetdeserialize, equals, getfieldnumBits, getfieldOffset, getHeaderSize, getParent, getPayload, getRawPayload, hashCode, isCorrupted, postDeserializeCustomOperation, postSerializeCustomOperation, serialize, setParent, setPayload, setRawPayload, toString
- 
Constructor Details- 
Ethernetpublic Ethernet()Default constructor that creates and sets the HashMap.
- 
Ethernetpublic Ethernet(boolean writeAccess) Constructor that sets the access level for the packet and creates and sets the HashMap.
 
- 
- 
Method Details- 
setHeaderField- Overrides:
- setHeaderFieldin class- Packet
 
- 
getDestinationMACAddresspublic byte[] getDestinationMACAddress()Gets the destination MAC address stored.- Returns:
- byte[] - the destinationMACAddress
 
- 
getSourceMACAddresspublic byte[] getSourceMACAddress()Gets the source MAC address stored.- Returns:
- byte[] - the sourceMACAddress
 
- 
getEtherTypepublic short getEtherType()Gets the etherType stored.- Returns:
- short - the etherType
 
- 
isBroadcastpublic boolean isBroadcast()
- 
isMulticastpublic boolean isMulticast()
- 
setDestinationMACAddressSets the destination MAC address for the current Ethernet object instance.- Parameters:
- destinationMACAddress- the destinationMACAddress to set
 
- 
setSourceMACAddressSets the source MAC address for the current Ethernet object instance.- Parameters:
- sourceMACAddress- the sourceMACAddress to set
 
- 
setEtherTypeSets the etherType for the current Ethernet object instance.- Parameters:
- etherType- the etherType to set
 
 
-