Class Dot11HtControl
java.lang.Object
org.pcap4j.packet.Dot11HtControl
- All Implemented Interfaces:
Serializable
HT Control field of an IEEE802.11 frame.
0 1 2 3 4 5 6 7
+----------+----------+----------+----------+----------+----------+----------+----------+
| |
| |
+ Link Adaptation Control +
| |
| |
+----------+----------+----------+----------+----------+----------+----------+----------+
| Calibration | Calibration | Reserved | CSI/Steering |
| Position | Sequence | | |
+----------+----------+----------+----------+----------+----------+----------+----------+
|NDP Annou-| Reserved |AC |RDG/More |
|ncement | |Constraint|PPDU |
+----------+----------+----------+----------+----------+----------+----------+----------+
- Since:
- pcap4j 1.7.0
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classstatic enumCalibration Position subfield of HT Control field of an IEEE802.11 frame.static enumCSI/Steering subfield of HT Control field of an IEEE802.11 frame. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final booleanprivate final booleanprivate final booleanprivate final booleanprivate final booleanprivate final booleanprivate final booleanprivate final booleanprivate final Dot11HtControl.CalibrationPositionprivate final byteprivate final Dot11HtControl.CsiOrSteeringprivate final Dot11LinkAdaptationControlprivate final booleanprivate final booleanprivate static final long -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateDot11HtControl(byte[] rawData, int offset, int length) privateDot11HtControl(Dot11HtControl.Builder builder) -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanbooleangetBit20()booleangetBit21()booleangetBit25()booleangetBit26()booleangetBit27()booleangetBit28()booleangetBit29()byteintbooleanbyte[]booleaninthashCode()intlength()static Dot11HtControlnewInstance(byte[] rawData, int offset, int length) A static factory method.toString()
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
linkAdaptationControl
-
calibrationPosition
-
calibrationSequence
private final byte calibrationSequence -
bit20
private final boolean bit20 -
bit21
private final boolean bit21 -
csiOrSteering
-
ndpAnnouncement
private final boolean ndpAnnouncement -
bit25
private final boolean bit25 -
bit26
private final boolean bit26 -
bit27
private final boolean bit27 -
bit28
private final boolean bit28 -
bit29
private final boolean bit29 -
acConstraint
private final boolean acConstraint -
rdgOrMorePpdu
private final boolean rdgOrMorePpdu
-
-
Constructor Details
-
Dot11HtControl
- Throws:
IllegalRawDataException
-
Dot11HtControl
-
-
Method Details
-
newInstance
public static Dot11HtControl 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 Dot11HtControl object.
- Throws:
IllegalRawDataException- if parsing the raw data fails.
-
getLinkAdaptationControl
- Returns:
- linkAdaptationControl
-
getCalibrationPosition
- Returns:
- calibrationPosition
-
getCalibrationSequence
public byte getCalibrationSequence()- Returns:
- calibrationSequence
-
getCalibrationSequenceAsInt
public int getCalibrationSequenceAsInt()- Returns:
- calibrationSequence
-
getBit20
public boolean getBit20()- Returns:
- true if the bit 20 is set to 1; false otherwise.
-
getBit21
public boolean getBit21()- Returns:
- true if the bit 21 is set to 1; false otherwise.
-
getCsiOrSteering
- Returns:
- csiOrSteering
-
getNdpAnnouncement
public boolean getNdpAnnouncement()- Returns:
- true if the NDP Announcement field is set to 1; false otherwise.
-
getBit25
public boolean getBit25()- Returns:
- true if the bit 25 is set to 1; false otherwise.
-
getBit26
public boolean getBit26()- Returns:
- true if the bit 26 is set to 1; false otherwise.
-
getBit27
public boolean getBit27()- Returns:
- true if the bit 27 is set to 1; false otherwise.
-
getBit28
public boolean getBit28()- Returns:
- true if the bit 28 is set to 1; false otherwise.
-
getBit29
public boolean getBit29()- Returns:
- true if the bit 29 is set to 1; false otherwise.
-
getAcConstraint
public boolean getAcConstraint()- Returns:
- true if the AC Constraint field is set to 1; false otherwise.
-
getRdgOrMorePpdu
public boolean getRdgOrMorePpdu()- Returns:
- true if the RDG/More PPDU field is set to 1; false otherwise.
-
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
-
toString
-
hashCode
-
equals
-