- java.lang.Object
-
- org.pcap4j.packet.Dot11HtControl
-
- All Implemented Interfaces:
java.io.Serializable
public final class Dot11HtControl extends java.lang.Object implements java.io.SerializableHT 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:
- IEEE802.11, Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDot11HtControl.Builderstatic classDot11HtControl.CalibrationPositionCalibration Position subfield of HT Control field of an IEEE802.11 frame.static classDot11HtControl.CsiOrSteeringCSI/Steering subfield of HT Control field of an IEEE802.11 frame.
-
Field Summary
Fields Modifier and Type Field Description private booleanacConstraintprivate booleanbit20private booleanbit21private booleanbit25private booleanbit26private booleanbit27private booleanbit28private booleanbit29private Dot11HtControl.CalibrationPositioncalibrationPositionprivate bytecalibrationSequenceprivate Dot11HtControl.CsiOrSteeringcsiOrSteeringprivate Dot11LinkAdaptationControllinkAdaptationControlprivate booleanndpAnnouncementprivate booleanrdgOrMorePpduprivate static longserialVersionUID
-
Constructor Summary
Constructors Modifier Constructor Description privateDot11HtControl(byte[] rawData, int offset, int length)privateDot11HtControl(Dot11HtControl.Builder builder)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)booleangetAcConstraint()booleangetBit20()booleangetBit21()booleangetBit25()booleangetBit26()booleangetBit27()booleangetBit28()booleangetBit29()Dot11HtControl.BuildergetBuilder()Dot11HtControl.CalibrationPositiongetCalibrationPosition()bytegetCalibrationSequence()intgetCalibrationSequenceAsInt()Dot11HtControl.CsiOrSteeringgetCsiOrSteering()Dot11LinkAdaptationControlgetLinkAdaptationControl()booleangetNdpAnnouncement()byte[]getRawData()booleangetRdgOrMorePpdu()inthashCode()intlength()static Dot11HtControlnewInstance(byte[] rawData, int offset, int length)A static factory method.java.lang.StringtoString()java.lang.StringtoString(java.lang.String indent)
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
linkAdaptationControl
private final Dot11LinkAdaptationControl linkAdaptationControl
-
calibrationPosition
private final Dot11HtControl.CalibrationPosition calibrationPosition
-
calibrationSequence
private final byte calibrationSequence
-
bit20
private final boolean bit20
-
bit21
private final boolean bit21
-
csiOrSteering
private final Dot11HtControl.CsiOrSteering 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 Detail
-
Dot11HtControl
private Dot11HtControl(byte[] rawData, int offset, int length) throws IllegalRawDataException- Throws:
IllegalRawDataException
-
Dot11HtControl
private Dot11HtControl(Dot11HtControl.Builder builder)
-
-
Method Detail
-
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
public Dot11LinkAdaptationControl getLinkAdaptationControl()
- Returns:
- linkAdaptationControl
-
getCalibrationPosition
public Dot11HtControl.CalibrationPosition 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
public Dot11HtControl.CsiOrSteering 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
public Dot11HtControl.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
-
toString
public java.lang.String toString(java.lang.String indent)
- Parameters:
indent- indent- Returns:
- String representation of this object.
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
-