Package org.onlab.packet
Class EAPOL
- java.lang.Object
- 
- org.onlab.packet.BasePacket
- 
- org.onlab.packet.EAPOL
 
 
- 
- All Implemented Interfaces:
- IPacket
 
 public class EAPOL extends BasePacket EAPOL (Extensible Authentication Protocol over LAN) header.
- 
- 
Field SummaryFields Modifier and Type Field Description static byteEAPOL_ASFstatic byteEAPOL_KEYstatic byteEAPOL_LOGOFFstatic byteEAPOL_MKAstatic byteEAPOL_PACKETstatic byteEAPOL_STARTstatic MacAddressPAE_GROUP_ADDR- 
Fields inherited from class org.onlab.packet.BasePacketparent, payload
 
- 
 - 
Constructor SummaryConstructors Constructor Description EAPOL()
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Deserializer<EAPOL>deserializer()Deserializer for EAPOL packets.booleanequals(java.lang.Object o)bytegetEapolType()Gets the type.shortgetPacketLength()Gets the packet length.bytegetVersion()Gets the version.inthashCode()byte[]serialize()Serializes the packet, based on the code/type using the payload to compute its length.EAPOLsetEapolType(byte eapolType)Sets the EAPOL type.EAPOLsetPacketLength(short packetLen)Sets the packet length.EAPOLsetVersion(byte version)Sets the version.java.lang.StringtoString()- 
Methods inherited from class org.onlab.packet.BasePacketclone, getParent, getPayload, resetChecksum, setParent, setPayload
 
- 
 
- 
- 
- 
Field Detail- 
EAPOL_PACKETpublic static final byte EAPOL_PACKET - See Also:
- Constant Field Values
 
 - 
EAPOL_STARTpublic static final byte EAPOL_START - See Also:
- Constant Field Values
 
 - 
EAPOL_LOGOFFpublic static final byte EAPOL_LOGOFF - See Also:
- Constant Field Values
 
 - 
EAPOL_KEYpublic static final byte EAPOL_KEY - See Also:
- Constant Field Values
 
 - 
EAPOL_ASFpublic static final byte EAPOL_ASF - See Also:
- Constant Field Values
 
 - 
EAPOL_MKApublic static final byte EAPOL_MKA - See Also:
- Constant Field Values
 
 - 
PAE_GROUP_ADDRpublic static final MacAddress PAE_GROUP_ADDR 
 
- 
 - 
Method Detail- 
getVersionpublic byte getVersion() Gets the version.- Returns:
- version
 
 - 
setVersionpublic EAPOL setVersion(byte version) Sets the version.- Parameters:
- version- EAPOL version
- Returns:
- this
 
 - 
getEapolTypepublic byte getEapolType() Gets the type.- Returns:
- EAPOL type
 
 - 
setEapolTypepublic EAPOL setEapolType(byte eapolType) Sets the EAPOL type.- Parameters:
- eapolType- EAPOL type
- Returns:
- this
 
 - 
getPacketLengthpublic short getPacketLength() Gets the packet length.- Returns:
- packet length
 
 - 
setPacketLengthpublic EAPOL setPacketLength(short packetLen) Sets the packet length.- Parameters:
- packetLen- packet length
- Returns:
- this
 
 - 
serializepublic byte[] serialize() Serializes the packet, based on the code/type using the payload to compute its length.- Returns:
- this
 
 - 
hashCodepublic int hashCode() - Overrides:
- hashCodein class- BasePacket
 
 - 
equalspublic boolean equals(java.lang.Object o) - Overrides:
- equalsin class- BasePacket
 
 - 
deserializerpublic static Deserializer<EAPOL> deserializer() Deserializer for EAPOL packets.- Returns:
- deserializer
 
 - 
toStringpublic java.lang.String toString() - Overrides:
- toStringin class- java.lang.Object
 
 
- 
 
-