- java.lang.Object
-
- org.pcap4j.packet.Dot11LinkAdaptationControl
-
- All Implemented Interfaces:
java.io.Serializable
public final class Dot11LinkAdaptationControl extends java.lang.Object implements java.io.SerializableLink 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:
- IEEE802.11, Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDot11LinkAdaptationControl.AselcASELC subfieldstatic classDot11LinkAdaptationControl.AselCommandstatic classDot11LinkAdaptationControl.Builderstatic classDot11LinkAdaptationControl.MaiMAI subfield
-
Field Summary
Fields Modifier and Type Field Description private Dot11LinkAdaptationControl.Aselcaselcprivate booleanaselistatic byteASELIASELIprivate Dot11LinkAdaptationControl.Maimaiprivate java.lang.Bytemfbprivate bytemfsiprivate static longserialVersionUIDprivate booleantrqprivate booleanvhtMfb
-
Constructor Summary
Constructors Modifier Constructor Description privateDot11LinkAdaptationControl(byte[] rawData, int offset, int length)privateDot11LinkAdaptationControl(Dot11LinkAdaptationControl.Builder builder)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)Dot11LinkAdaptationControl.AselcgetAselc()Dot11LinkAdaptationControl.BuildergetBuilder()Dot11LinkAdaptationControl.MaigetMai()java.lang.BytegetMfb()java.lang.IntegergetMfbAsInteger()bytegetMfsi()intgetMfsiAsInt()byte[]getRawData()inthashCode()booleanisAselIndicated()booleanisTrq()booleanisVhtMfb()intlength()static Dot11LinkAdaptationControlnewInstance(byte[] rawData, int offset, int length)A static factory method.java.lang.StringtoString()
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
ASELI
public static final byte ASELI
ASELI- See Also:
- Constant Field Values
-
vhtMfb
private final boolean vhtMfb
-
trq
private final boolean trq
-
aseli
private final boolean aseli
-
mai
private final Dot11LinkAdaptationControl.Mai mai
-
mfsi
private final byte mfsi
-
mfb
private final java.lang.Byte mfb
-
aselc
private final Dot11LinkAdaptationControl.Aselc aselc
-
-
Constructor Detail
-
Dot11LinkAdaptationControl
private Dot11LinkAdaptationControl(byte[] rawData, int offset, int length) throws IllegalRawDataException- Throws:
IllegalRawDataException
-
Dot11LinkAdaptationControl
private Dot11LinkAdaptationControl(Dot11LinkAdaptationControl.Builder builder)
-
-
Method Detail
-
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:
ASELI
-
getMai
public Dot11LinkAdaptationControl.Mai getMai()
- Returns:
- a
Dot11LinkAdaptationControl.Maiobject ifisAselIndicatedreturns false; otherwise null.
-
getMfsi
public byte getMfsi()
- Returns:
- mfsi
-
getMfsiAsInt
public int getMfsiAsInt()
- Returns:
- mfsi
-
getMfb
public java.lang.Byte getMfb()
- Returns:
- the value of MFB if
isAselIndicatedreturns false; otherwise null.
-
getMfbAsInteger
public java.lang.Integer getMfbAsInteger()
- Returns:
- the value of MFB if
isAselIndicatedreturns false; otherwise null.
-
getAselc
public Dot11LinkAdaptationControl.Aselc getAselc()
- Returns:
- an
Dot11LinkAdaptationControl.Aselcobject ifisAselIndicatedreturns true; otherwise null.
-
getBuilder
public Dot11LinkAdaptationControl.Builder 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
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
-