Class Dot11FrameControl

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

public final class Dot11FrameControl extends Object implements Serializable
Frame control field of an IEEE802.11 frame.
     0          1          2          3          4          5          6          7
+----------+----------+----------+----------+----------+----------+----------+----------+
|       Protocol      |        Type         |                  Subtype                  |
|       Version       |                     |                                           |
+----------+----------+----------+----------+----------+----------+----------+----------+
|  To DS   | From DS  |More      |  Retry   |Power     |  More    |Protected |  Order   |
|          |          |Fragments |          |Management|  Data    |Frame     |          |
+----------+----------+----------+----------+----------+----------+----------+----------+
Since:
pcap4j 1.7.0
See Also:
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      See Also:
    • protocolVersion

      private final Dot11FrameControl.ProtocolVersion protocolVersion
    • type

      private final Dot11FrameType type
    • toDs

      private final boolean toDs
    • fromDs

      private final boolean fromDs
    • moreFragments

      private final boolean moreFragments
    • retry

      private final boolean retry
    • powerManagement

      private final boolean powerManagement
    • moreData

      private final boolean moreData
    • protectedFrame

      private final boolean protectedFrame
    • order

      private final boolean order
  • Constructor Details

  • Method Details

    • newInstance

      public static Dot11FrameControl 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 Dot11FrameControl object.
      Throws:
      IllegalRawDataException - if parsing the raw data fails.
    • getProtocolVersion

      public Dot11FrameControl.ProtocolVersion getProtocolVersion()
      Returns:
      protocolVersion
    • getType

      public Dot11FrameType getType()
      Returns:
      type
    • isToDs

      public boolean isToDs()
      Returns:
      toDs
    • isFromDs

      public boolean isFromDs()
      Returns:
      fromDs
    • isMoreFragments

      public boolean isMoreFragments()
      Returns:
      moreFragments
    • isRetry

      public boolean isRetry()
      Returns:
      retry
    • isPowerManagement

      public boolean isPowerManagement()
      Returns:
      powerManagement
    • isMoreData

      public boolean isMoreData()
      Returns:
      moreData
    • isProtectedFrame

      public boolean isProtectedFrame()
      Returns:
      protectedFrame
    • isOrder

      public boolean isOrder()
      Returns:
      order
    • getBuilder

      public Dot11FrameControl.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