Package org.onlab.packet
Class EAPOLMkpdu
- java.lang.Object
-
- org.onlab.packet.BasePacket
-
- org.onlab.packet.EAPOLMkpdu
-
- All Implemented Interfaces:
IPacket
public class EAPOLMkpdu extends BasePacket
EAPOL MKA (EAPOL MAC Key Agreement Protocol) header.
-
-
Field Summary
-
Fields inherited from class org.onlab.packet.BasePacket
parent, payload
-
-
Constructor Summary
Constructors Constructor Description EAPOLMkpdu()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
addParameterSet(short type, EAPOLMkpduParameterSet ps)
Populate various Parameter Sets to store.static Deserializer<EAPOLMkpdu>
deserializer()
Static deserializer for EAPOL-MKA packets.EAPOLMkpduBasicParameterSet
getBasicParameterSet()
Provide Basic Parameter Set details.EAPOLMkpduParameterSet
getParameterSet(byte type)
Retrieve Parameter Set based on type.EAPOLMkpduPeerListParameterSet
getPeerListParameterSet()
Provide Live/Potential Peer List details.short
packetLength()
Total EAPOL-MKPDU packet length.byte[]
serialize()
Sets all payloads parent packet if applicable, then serializes this packet and all payloads.-
Methods inherited from class org.onlab.packet.BasePacket
clone, equals, getParent, getPayload, hashCode, resetChecksum, setParent, setPayload
-
-
-
-
Method Detail
-
serialize
public byte[] serialize()
Description copied from interface:IPacket
Sets all payloads parent packet if applicable, then serializes this packet and all payloads.- Returns:
- a byte[] containing this packet and payloads
-
deserializer
public static Deserializer<EAPOLMkpdu> deserializer()
Static deserializer for EAPOL-MKA packets.- Returns:
- deserializer function
-
addParameterSet
public boolean addParameterSet(short type, EAPOLMkpduParameterSet ps)
Populate various Parameter Sets to store.- Parameters:
type
- shortps
- EAPOLMkpduParameterSet- Returns:
- boolean
-
getBasicParameterSet
public EAPOLMkpduBasicParameterSet getBasicParameterSet()
Provide Basic Parameter Set details.- Returns:
- EAPOLMkpduBasicParameterSet
-
getPeerListParameterSet
public EAPOLMkpduPeerListParameterSet getPeerListParameterSet()
Provide Live/Potential Peer List details.- Returns:
- EAPOLMkpduPeerListParameterSet
-
packetLength
public short packetLength()
Total EAPOL-MKPDU packet length. Cumulative length of Parameter Sets.- Returns:
- length
-
getParameterSet
public EAPOLMkpduParameterSet getParameterSet(byte type)
Retrieve Parameter Set based on type.- Parameters:
type
- byte- Returns:
- EAPOLMkpduParameterSet
-
-