Class Dot11LinkAdaptationControl
java.lang.Object
org.pcap4j.packet.Dot11LinkAdaptationControl
- All Implemented Interfaces:
Serializable
Link Adaptation Control field of an IEEE802.11 frame.
0 1 2 3 4 5 6 7
+--------+--------+--------+--------+--------+--------+--------+--------+
|VHT_MFB | TRQ | MAI | MFSI |
+--------+--------+--------+--------+--------+--------+--------+--------+
| MFSI | MFB/ASELC |
+--------+--------+--------+--------+--------+--------+--------+--------+
- Since:
- pcap4j 1.7.0
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classASELC subfieldstatic enumstatic final classstatic final classMAI subfield -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Dot11LinkAdaptationControl.Aselcprivate final booleanstatic final byteASELIprivate final Dot11LinkAdaptationControl.Maiprivate final Byteprivate final byteprivate static final longprivate final booleanprivate final boolean -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateDot11LinkAdaptationControl(byte[] rawData, int offset, int length) private -
Method Summary
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
ASELI
public static final byte ASELIASELI- See Also:
-
vhtMfb
private final boolean vhtMfb -
trq
private final boolean trq -
aseli
private final boolean aseli -
mai
-
mfsi
private final byte mfsi -
mfb
-
aselc
-
-
Constructor Details
-
Dot11LinkAdaptationControl
private Dot11LinkAdaptationControl(byte[] rawData, int offset, int length) throws IllegalRawDataException - Throws:
IllegalRawDataException
-
Dot11LinkAdaptationControl
-
-
Method Details
-
newInstance
public static Dot11LinkAdaptationControl newInstance(byte[] rawData, int offset, int length) throws IllegalRawDataException A static factory method. This method validates the arguments byByteArrays.validateBounds(byte[], int, int), which may throw exceptions undocumented here.- Parameters:
rawData- rawDataoffset- offsetlength- length- Returns:
- a new Dot11LinkAdaptationControl object.
- Throws:
IllegalRawDataException- if parsing the raw data fails.
-
isVhtMfb
public boolean isVhtMfb()- Returns:
- true if the VHT_MFB field is set to 1; false otherwise.
-
isTrq
public boolean isTrq()- Returns:
- true if the TRQ field is set to 1; false otherwise.
-
isAselIndicated
public boolean isAselIndicated()- Returns:
- true if the MAI field is set to 14 (ASELI); false otherwise.
- See Also:
-
getMai
- Returns:
- a
Dot11LinkAdaptationControl.Maiobject ifisAselIndicatedreturns false; otherwise null.
-
getMfsi
public byte getMfsi()- Returns:
- mfsi
-
getMfsiAsInt
public int getMfsiAsInt()- Returns:
- mfsi
-
getMfb
- Returns:
- the value of MFB if
isAselIndicatedreturns false; otherwise null.
-
getMfbAsInteger
- Returns:
- the value of MFB if
isAselIndicatedreturns false; otherwise null.
-
getAselc
- Returns:
- an
Dot11LinkAdaptationControl.Aselcobject ifisAselIndicatedreturns true; otherwise null.
-
getBuilder
- Returns:
- a new Builder object populated with this object's fields.
-
getRawData
public byte[] getRawData()- Returns:
- the raw data.
-
length
public int length()- Returns:
- length
-
toString
-
hashCode
-
equals
-