Package org.onlab.packet
Class EAPOLMkpduICVIndicatorParameterSet
- java.lang.Object
-
- org.onlab.packet.BasePacket
-
- org.onlab.packet.EAPOLMkpduICVIndicatorParameterSet
-
- All Implemented Interfaces:
EAPOLMkpduParameterSet
,IPacket
public class EAPOLMkpduICVIndicatorParameterSet extends BasePacket implements EAPOLMkpduParameterSet
Class representing MKPDU ICV Indicator. IEEE 802.1X Clause 11; Figure 11-16
-
-
Field Summary
Fields Modifier and Type Field Description static short
TOTAL_ICVPS_BODY_LENGTH
-
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 EAPOLMkpduICVIndicatorParameterSet()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Deserializer<EAPOLMkpduICVIndicatorParameterSet>
deserializer()
Deserializer function for ICV Indicator Parameter Set.short
getBodyLength()
Retrieve Body Length field of Parameter Set.byte
getParameterSetType()
Retrieve Type of Parameter Set.short
getTotalLength()
Total length; ie.byte[]
serialize()
Utility function for Serializing Parameter Set.void
setBodyLength(short bodyLength)
To set body length.void
setICV(byte[] icv)
To set ICV.-
Methods inherited from class org.onlab.packet.BasePacket
clone, equals, getParent, getPayload, hashCode, resetChecksum, setParent, setPayload
-
-
-
-
Field Detail
-
TOTAL_ICVPS_BODY_LENGTH
public static final short TOTAL_ICVPS_BODY_LENGTH
- See Also:
- Constant Field Values
-
-
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<EAPOLMkpduICVIndicatorParameterSet> deserializer()
Deserializer function for ICV Indicator Parameter Set.- Returns:
- deserializer function
-
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 bodyLength)
To set body length.- Parameters:
bodyLength
- ,type short
-
setICV
public void setICV(byte[] icv)
To set ICV.- Parameters:
icv
- , type byte[]
-
-