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 Summary
Fields 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.BasePacket
parent, payload
-
-
Constructor Summary
Constructors Constructor Description EAPOL()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Deserializer<EAPOL>deserializer()Deserializer for EAPOL packets.booleanequals(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.StringtoString()-
Methods inherited from class org.onlab.packet.BasePacket
clone, getParent, getPayload, resetChecksum, setParent, setPayload
-
-
-
-
Field Detail
-
EAPOL_PACKET
public static final byte EAPOL_PACKET
- See Also:
- Constant Field Values
-
EAPOL_START
public static final byte EAPOL_START
- See Also:
- Constant Field Values
-
EAPOL_LOGOFF
public static final byte EAPOL_LOGOFF
- See Also:
- Constant Field Values
-
EAPOL_KEY
public static final byte EAPOL_KEY
- See Also:
- Constant Field Values
-
EAPOL_ASF
public static final byte EAPOL_ASF
- See Also:
- Constant Field Values
-
EAPOL_MKA
public static final byte EAPOL_MKA
- See Also:
- Constant Field Values
-
PAE_GROUP_ADDR
public static final MacAddress PAE_GROUP_ADDR
-
-
Method Detail
-
getVersion
public byte getVersion()
Gets the version.- Returns:
- version
-
setVersion
public EAPOL setVersion(byte version)
Sets the version.- Parameters:
version- EAPOL version- Returns:
- this
-
getEapolType
public byte getEapolType()
Gets the type.- Returns:
- EAPOL type
-
setEapolType
public EAPOL setEapolType(byte eapolType)
Sets the EAPOL type.- Parameters:
eapolType- EAPOL type- Returns:
- this
-
getPacketLength
public short getPacketLength()
Gets the packet length.- Returns:
- packet length
-
setPacketLength
public EAPOL setPacketLength(short packetLen)
Sets the packet length.- Parameters:
packetLen- packet length- Returns:
- this
-
serialize
public byte[] serialize()
Serializes the packet, based on the code/type using the payload to compute its length.- Returns:
- this
-
hashCode
public int hashCode()
- Overrides:
hashCodein classBasePacket
-
equals
public boolean equals(Object o)
- Overrides:
equalsin classBasePacket
-
deserializer
public static Deserializer<EAPOL> deserializer()
Deserializer for EAPOL packets.- Returns:
- deserializer
-
-