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 byte
EAPOL_ASF
static byte
EAPOL_KEY
static byte
EAPOL_LOGOFF
static byte
EAPOL_MKA
static byte
EAPOL_PACKET
static byte
EAPOL_START
static MacAddress
PAE_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.boolean
equals(java.lang.Object o)
byte
getEapolType()
Gets the type.short
getPacketLength()
Gets the packet length.byte
getVersion()
Gets the version.int
hashCode()
byte[]
serialize()
Serializes the packet, based on the code/type using the payload to compute its length.EAPOL
setEapolType(byte eapolType)
Sets the EAPOL type.EAPOL
setPacketLength(short packetLen)
Sets the packet length.EAPOL
setVersion(byte version)
Sets the version.java.lang.String
toString()
-
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:
hashCode
in classBasePacket
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classBasePacket
-
deserializer
public static Deserializer<EAPOL> deserializer()
Deserializer for EAPOL packets.- Returns:
- deserializer
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-