Class Dot11HtControl

java.lang.Object
org.pcap4j.packet.Dot11HtControl
All Implemented Interfaces:
Serializable

public final class Dot11HtControl extends Object implements 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:
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      See Also:
    • 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 Details

  • Method Details

    • newInstance

      public static Dot11HtControl newInstance(byte[] rawData, int offset, int length) throws IllegalRawDataException
      A static factory method. This method validates the arguments by ByteArrays.validateBounds(byte[], int, int), which may throw exceptions undocumented here.
      Parameters:
      rawData - rawData
      offset - offset
      length - 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 String toString()
      Overrides:
      toString in class Object
    • toString

      public String toString(String indent)
      Parameters:
      indent - indent
      Returns:
      String representation of this object.
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object