public class EAPOL extends BasePacket
Modifier and Type | Field and Description |
---|---|
static byte |
EAPOL_ASF |
static byte |
EAPOL_KEY |
static byte |
EAPOL_LOGOFF |
static byte |
EAPOL_PACKET |
static byte |
EAPOL_START |
static MacAddress |
PAE_GROUP_ADDR |
parent, payload
Constructor and Description |
---|
EAPOL() |
Modifier and Type | Method and 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() |
clone, getParent, getPayload, resetChecksum, setParent, setPayload
public static final byte EAPOL_PACKET
public static final byte EAPOL_START
public static final byte EAPOL_LOGOFF
public static final byte EAPOL_KEY
public static final byte EAPOL_ASF
public static final MacAddress PAE_GROUP_ADDR
public byte getVersion()
public EAPOL setVersion(byte version)
version
- EAPOL versionpublic byte getEapolType()
public EAPOL setEapolType(byte eapolType)
eapolType
- EAPOL typepublic short getPacketLength()
public EAPOL setPacketLength(short packetLen)
packetLen
- packet lengthpublic byte[] serialize()
public int hashCode()
hashCode
in class BasePacket
public boolean equals(java.lang.Object o)
equals
in class BasePacket
public static Deserializer<EAPOL> deserializer()
public java.lang.String toString()
toString
in class java.lang.Object