Package org.onlab.packet
Class EAPOLMkpduPeerListParameterSet
- java.lang.Object
-
- org.onlab.packet.BasePacket
-
- org.onlab.packet.EAPOLMkpduPeerListParameterSet
-
- All Implemented Interfaces:
EAPOLMkpduParameterSet
,IPacket
public class EAPOLMkpduPeerListParameterSet extends BasePacket implements EAPOLMkpduParameterSet
Class representing MKPDU Live/Potential Peer List Parameter Set. IEEE 802.1X Clause 11; Figure 11-9
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
EAPOLMkpduPeerListParameterSet.MemberDetails
-
Field Summary
Fields Modifier and Type Field Description protected java.util.List<EAPOLMkpduPeerListParameterSet.MemberDetails>
members
-
Fields inherited from class org.onlab.packet.BasePacket
parent, payload
-
Fields inherited from interface org.onlab.packet.EAPOLMkpduParameterSet
BODY_LENGTH_MSB_MASK, BODY_LENGTH_MSB_SHIFT, BODY_LENGTH_OCTET_OFFSET, FIELD_MI_LENGTH, FIELD_MN_LENGTH, FIELD_SCI_LENGTH, PARAMETERSET_TYPE_BASIC, PARAMETERSET_TYPE_DISTRIBUTED_SAK, PARAMETERSET_TYPE_ICV_INDICATOR, PARAMETERSET_TYPE_LIVE_PEER_LIST, PARAMETERSET_TYPE_MACSEC_SAK_USE, PARAMETERSET_TYPE_POTENTIAL_PEER_LIST
-
-
Constructor Summary
Constructors Constructor Description EAPOLMkpduPeerListParameterSet()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addMember(byte[] mi, int mn)
Member details adding.static Deserializer<EAPOLMkpduPeerListParameterSet>
deserializer()
Deserializer function for Peer List Parameter Set.short
getBodyLength()
Retrieve Body Length field of Parameter Set.java.util.List<EAPOLMkpduPeerListParameterSet.MemberDetails>
getMembers()
Member details.byte
getParameterSetType()
Retrieve Type of Parameter Set.short
getTotalLength()
Total length; ie.boolean
memberExists(byte[] mi)
Searching Member details.byte[]
serialize()
Utility function for Serializing Parameter Set.void
setBodyLength(short length)
Body Length.void
setPeerListType(byte peerListType)
Setting List Type.-
Methods inherited from class org.onlab.packet.BasePacket
clone, equals, getParent, getPayload, hashCode, resetChecksum, setParent, setPayload
-
-
-
-
Field Detail
-
members
protected java.util.List<EAPOLMkpduPeerListParameterSet.MemberDetails> members
-
-
Method Detail
-
serialize
public byte[] serialize()
Description copied from interface:EAPOLMkpduParameterSet
Utility function for Serializing Parameter Set.- Specified by:
serialize
in interfaceEAPOLMkpduParameterSet
- Specified by:
serialize
in interfaceIPacket
- Returns:
- byte[] value
-
deserializer
public static Deserializer<EAPOLMkpduPeerListParameterSet> deserializer()
Deserializer function for Peer List Parameter Set.- Returns:
- deserializer function
-
setPeerListType
public void setPeerListType(byte peerListType)
Setting List Type.- Parameters:
peerListType
- type - PEERLIST_TYPE_LIVE or PEERLIST_TYPE_POTENTIAL for live and potential peer lists
-
addMember
public void addMember(byte[] mi, int mn)
Member details adding.- Parameters:
mi
- ,type byte[]mn
- , type int
-
memberExists
public boolean memberExists(byte[] mi)
Searching Member details.- Parameters:
mi
- ,type byte[]- Returns:
- boolean based on the value of member.
-
getMembers
public java.util.List<EAPOLMkpduPeerListParameterSet.MemberDetails> getMembers()
Member details.- Returns:
- members
-
getParameterSetType
public byte getParameterSetType()
Description copied from interface:EAPOLMkpduParameterSet
Retrieve Type of Parameter Set.- Specified by:
getParameterSetType
in interfaceEAPOLMkpduParameterSet
- Returns:
- parameter set type.
-
getTotalLength
public short getTotalLength()
Description copied from interface:EAPOLMkpduParameterSet
Total length; ie. including header and body length.- Specified by:
getTotalLength
in interfaceEAPOLMkpduParameterSet
- Returns:
- short value.
-
getBodyLength
public short getBodyLength()
Description copied from interface:EAPOLMkpduParameterSet
Retrieve Body Length field of Parameter Set.- Specified by:
getBodyLength
in interfaceEAPOLMkpduParameterSet
- Returns:
- body length of parameter set.
-
setBodyLength
public void setBodyLength(short length)
Body Length.- Parameters:
length
- ,type short
-
-