Class RadiotapDataRxFlags

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

public final class RadiotapDataRxFlags extends Object implements RadiotapPacket.RadiotapData
Radiotap RX flags field. Properties of received frames.
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:
    • lsb

      private final boolean lsb
    • badPlcpCrc

      private final boolean badPlcpCrc
    • thirdLsb

      private final boolean thirdLsb
    • fourthLsb

      private final boolean fourthLsb
    • fifthLsb

      private final boolean fifthLsb
    • sixthLsb

      private final boolean sixthLsb
    • seventhLsb

      private final boolean seventhLsb
    • eighthLsb

      private final boolean eighthLsb
    • ninthLsb

      private final boolean ninthLsb
    • tenthLsb

      private final boolean tenthLsb
    • eleventhLsb

      private final boolean eleventhLsb
    • twelvethLsb

      private final boolean twelvethLsb
    • thirteenthLsb

      private final boolean thirteenthLsb
    • fourteenthLsb

      private final boolean fourteenthLsb
    • fifteenthLsb

      private final boolean fifteenthLsb
    • sixteenthLsb

      private final boolean sixteenthLsb
  • Constructor Details

  • Method Details

    • newInstance

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

      public boolean getLsb()
      Returns:
      true if the LSB is set to 1; otherwise false.
    • isBadPlcpCrc

      public boolean isBadPlcpCrc()
      Returns:
      badPlcpCrc
    • getThirdLsb

      public boolean getThirdLsb()
      Returns:
      true if the third LSB is set to 1; otherwise false.
    • getFourthLsb

      public boolean getFourthLsb()
      Returns:
      true if the fourth LSB is set to 1; otherwise false.
    • getFifthLsb

      public boolean getFifthLsb()
      Returns:
      true if the fifth LSB is set to 1; otherwise false.
    • getSixthLsb

      public boolean getSixthLsb()
      Returns:
      true if the sixth LSB is set to 1; otherwise false.
    • getSeventhLsb

      public boolean getSeventhLsb()
      Returns:
      true if the seventh LSB is set to 1; otherwise false.
    • getEighthLsb

      public boolean getEighthLsb()
      Returns:
      true if the eighth LSB is set to 1; otherwise false.
    • getNinthLsb

      public boolean getNinthLsb()
      Returns:
      true if the ninth LSB is set to 1; otherwise false.
    • getTenthLsb

      public boolean getTenthLsb()
      Returns:
      true if the tenth LSB is set to 1; otherwise false.
    • getEleventhLsb

      public boolean getEleventhLsb()
      Returns:
      true if the eleventh LSB is set to 1; otherwise false.
    • getTwelvethLsb

      public boolean getTwelvethLsb()
      Returns:
      true if the twelveth LSB is set to 1; otherwise false.
    • getThirteenthLsb

      public boolean getThirteenthLsb()
      Returns:
      true if the thirteenth LSB is set to 1; otherwise false.
    • getFourteenthLsb

      public boolean getFourteenthLsb()
      Returns:
      true if the fourteenth LSB is set to 1; otherwise false.
    • getFifteenthLsb

      public boolean getFifteenthLsb()
      Returns:
      true if the fifteenth LSB is set to 1; otherwise false.
    • getSixteenthLsb

      public boolean getSixteenthLsb()
      Returns:
      true if the sixteenth LSB is set to 1; otherwise false.
    • 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 RadiotapDataRxFlags.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