Package org.pcap4j.packet
Class Dot11HtControl
- java.lang.Object
-
- org.pcap4j.packet.Dot11HtControl
-
- All Implemented Interfaces:
java.io.Serializable
public final class Dot11HtControl extends java.lang.Object implements java.io.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
- Author:
- Kaito Yamada
- See Also:
- IEEE802.11, Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Dot11HtControl.Builder
static class
Dot11HtControl.CalibrationPosition
Calibration Position subfield of HT Control field of an IEEE802.11 frame.static class
Dot11HtControl.CsiOrSteering
CSI/Steering subfield of HT Control field of an IEEE802.11 frame.
-
Method Summary
Modifier and Type Method Description boolean
equals(java.lang.Object obj)
boolean
getAcConstraint()
boolean
getBit20()
boolean
getBit21()
boolean
getBit25()
boolean
getBit26()
boolean
getBit27()
boolean
getBit28()
boolean
getBit29()
Dot11HtControl.Builder
getBuilder()
Dot11HtControl.CalibrationPosition
getCalibrationPosition()
byte
getCalibrationSequence()
int
getCalibrationSequenceAsInt()
Dot11HtControl.CsiOrSteering
getCsiOrSteering()
Dot11LinkAdaptationControl
getLinkAdaptationControl()
boolean
getNdpAnnouncement()
byte[]
getRawData()
boolean
getRdgOrMorePpdu()
int
hashCode()
int
length()
static Dot11HtControl
newInstance(byte[] rawData, int offset, int length)
A static factory method.java.lang.String
toString()
java.lang.String
toString(java.lang.String indent)
-
-
-
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:
toString
in 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:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
-