Class RadiotapDataAMpduStatus

java.lang.Object
org.pcap4j.packet.RadiotapDataAMpduStatus
All Implemented Interfaces:
Serializable, RadiotapPacket.RadiotapData

public final class RadiotapDataAMpduStatus extends Object implements RadiotapPacket.RadiotapData
Radiotap A-MPDU status field.
Since:
pcap4j 1.6.5
See Also:
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      See Also:
    • LENGTH

      private static final int LENGTH
      See Also:
    • referenceNumber

      private final int referenceNumber
    • driverReportsZeroLengthSubframes

      private final boolean driverReportsZeroLengthSubframes
    • zeroLengthSubframe

      private final boolean zeroLengthSubframe
    • lastSubframeKnown

      private final boolean lastSubframeKnown
    • lastSubframe

      private final boolean lastSubframe
    • delimiterCrcError

      private final boolean delimiterCrcError
    • delimiterCrcValueKnown

      private final boolean delimiterCrcValueKnown
    • tenthMsbOfFlags

      private final boolean tenthMsbOfFlags
    • ninthMsbOfFlags

      private final boolean ninthMsbOfFlags
    • eighthMsbOfFlags

      private final boolean eighthMsbOfFlags
    • seventhMsbOfFlags

      private final boolean seventhMsbOfFlags
    • sixthMsbOfFlags

      private final boolean sixthMsbOfFlags
    • fifthMsbOfFlags

      private final boolean fifthMsbOfFlags
    • fourthMsbOfFlags

      private final boolean fourthMsbOfFlags
    • thirdMsbOfFlags

      private final boolean thirdMsbOfFlags
    • secondMsbOfFlags

      private final boolean secondMsbOfFlags
    • msbOfFlags

      private final boolean msbOfFlags
    • delimiterCrcValue

      private final byte delimiterCrcValue
    • reserved

      private final byte reserved
  • Constructor Details

  • Method Details

    • newInstance

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

      public int getReferenceNumber()
      Returns:
      referenceNumber
    • getReferenceNumberAsLong

      public long getReferenceNumberAsLong()
      Returns:
      referenceNumber
    • getDriverReportsZeroLengthSubframes

      public boolean getDriverReportsZeroLengthSubframes()
      Returns:
      true if the driver reports 0-length subframes; false otherwise.
    • isZeroLengthSubframe

      public boolean isZeroLengthSubframe()
      Returns:
      true if this is a 0-length subframe; false otherwise.
    • isLastSubframeKnown

      public boolean isLastSubframeKnown()
      Returns:
      true if the last subframe is known; false otherwise.
    • isLastSubframe

      public boolean isLastSubframe()
      Returns:
      true if this is the last subframe; false otherwise.
    • isDelimiterCrcError

      public boolean isDelimiterCrcError()
      Returns:
      true if delimiter CRC error on this subframe; false otherwise.
    • isDelimiterCrcValueKnown

      public boolean isDelimiterCrcValueKnown()
      Returns:
      true if the delimiter CRC value is known; false otherwise.
    • getTenthMsbOfFlags

      public boolean getTenthMsbOfFlags()
      Returns:
      true if the 10th MSB of the flags field is set to 1; false otherwise.
    • getNinthMsbOfFlags

      public boolean getNinthMsbOfFlags()
      Returns:
      true if the 9th MSB of the flags field is set to 1; false otherwise.
    • getEighthMsbOfFlags

      public boolean getEighthMsbOfFlags()
      Returns:
      true if the 8th MSB of the flags field is set to 1; false otherwise.
    • getSeventhMsbOfFlags

      public boolean getSeventhMsbOfFlags()
      Returns:
      true if the 7th MSB of the flags field is set to 1; false otherwise.
    • getSixthMsbOfFlags

      public boolean getSixthMsbOfFlags()
      Returns:
      true if the 6th MSB of the flags field is set to 1; false otherwise.
    • getFifthMsbOfFlags

      public boolean getFifthMsbOfFlags()
      Returns:
      true if the 5th MSB of the flags field is set to 1; false otherwise.
    • getFourthMsbOfFlags

      public boolean getFourthMsbOfFlags()
      Returns:
      true if the 4th MSB of the flags field is set to 1; false otherwise.
    • getThirdMsbOfFlags

      public boolean getThirdMsbOfFlags()
      Returns:
      true if the 3rd MSB of the flags field is set to 1; false otherwise.
    • getSecondMsbOfFlags

      public boolean getSecondMsbOfFlags()
      Returns:
      true if the 2nd MSB of the flags field is set to 1; false otherwise.
    • getMsbOfFlags

      public boolean getMsbOfFlags()
      Returns:
      true if the MSB of the flags field is set to 1; false otherwise.
    • getDelimiterCrcValue

      public byte getDelimiterCrcValue()
      Returns:
      delimiterCrcValue
    • getReserved

      public byte getReserved()
      Returns:
      reserved
    • length

      public int length()
      Specified by:
      length in interface RadiotapPacket.RadiotapData
      Returns:
      length
    • getRawData

      public byte[] getRawData()
      Specified by:
      getRawData in interface RadiotapPacket.RadiotapData
      Returns:
      raw data
    • getBuilder

      public RadiotapDataAMpduStatus.Builder getBuilder()
      Returns:
      a new Builder object populated with this object's fields.
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • toString

      public String toString(String indent)
      Specified by:
      toString in interface RadiotapPacket.RadiotapData
      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