Class RadiotapDataVht

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

public final class RadiotapDataVht extends Object implements RadiotapPacket.RadiotapData
Radiotap VHT 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:
    • stbcKnown

      private final boolean stbcKnown
    • txopPsNotAllowedKnown

      private final boolean txopPsNotAllowedKnown
    • guardIntervalKnown

      private final boolean guardIntervalKnown
    • shortGiNsymDisambiguationKnown

      private final boolean shortGiNsymDisambiguationKnown
    • ldpcExtraOfdmSymbolKnown

      private final boolean ldpcExtraOfdmSymbolKnown
    • beamformedKnown

      private final boolean beamformedKnown
    • bandwidthKnown

      private final boolean bandwidthKnown
    • groupIdKnown

      private final boolean groupIdKnown
    • partialAidKnown

      private final boolean partialAidKnown
    • seventhMsbOfKnown

      private final boolean seventhMsbOfKnown
    • sixthMsbOfKnown

      private final boolean sixthMsbOfKnown
    • fifthMsbOfKnown

      private final boolean fifthMsbOfKnown
    • fourthMsbOfKnown

      private final boolean fourthMsbOfKnown
    • thirdMsbOfKnown

      private final boolean thirdMsbOfKnown
    • secondMsbOfKnown

      private final boolean secondMsbOfKnown
    • msbOfKnown

      private final boolean msbOfKnown
    • stbc

      private final boolean stbc
    • txopPsNotAllowed

      private final boolean txopPsNotAllowed
    • shortGuardInterval

      private final boolean shortGuardInterval
    • shortGiNsymDisambiguation

      private final boolean shortGiNsymDisambiguation
    • ldpcExtraOfdmSymbol

      private final boolean ldpcExtraOfdmSymbol
    • beamformed

      private final boolean beamformed
    • secondMsbOfFlags

      private final boolean secondMsbOfFlags
    • msbOfFlags

      private final boolean msbOfFlags
    • bandwidth

      private final RadiotapVhtBandwidth bandwidth
    • mcses

      private final byte[] mcses
    • nsses

      private final byte[] nsses
    • fecTypes

      private final RadiotapFecType[] fecTypes
    • unusedInCoding

      private final byte unusedInCoding
    • groupId

      private final byte groupId
    • partialAid

      private final short partialAid
  • Constructor Details

  • Method Details

    • newInstance

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

      public boolean isStbcKnown()
      Returns:
      true if the STBC is known; false otherwise.
    • isTxopPsNotAllowedKnown

      public boolean isTxopPsNotAllowedKnown()
      Returns:
      true if the TXOP_PS_NOT_ALLOWED is known; false otherwise.
    • isGuardIntervalKnown

      public boolean isGuardIntervalKnown()
      Returns:
      true if the Guard interval is known; false otherwise.
    • isShortGiNsymDisambiguationKnown

      public boolean isShortGiNsymDisambiguationKnown()
      Returns:
      true if the Short GI NSYM disambiguation is known; false otherwise.
    • isLdpcExtraOfdmSymbolKnown

      public boolean isLdpcExtraOfdmSymbolKnown()
      Returns:
      true if the LDPC extra OFDM symbol is known; false otherwise.
    • isBeamformedKnown

      public boolean isBeamformedKnown()
      Returns:
      true if the Beamformed is known; false otherwise.
    • isBandwidthKnown

      public boolean isBandwidthKnown()
      Returns:
      true if the Bandwidth is known; false otherwise.
    • isGroupIdKnown

      public boolean isGroupIdKnown()
      Returns:
      true if the Group ID is known; false otherwise.
    • isPartialAidKnown

      public boolean isPartialAidKnown()
      Returns:
      true if the Partial AID is known; false otherwise.
    • getSeventhMsbOfKnown

      public boolean getSeventhMsbOfKnown()
      Returns:
      true if the seventh MSB of the known field is set to 1; false otherwise.
    • getSixthMsbOfKnown

      public boolean getSixthMsbOfKnown()
      Returns:
      true if the sixth MSB of the known field is set to 1; false otherwise.
    • getFifthMsbOfKnown

      public boolean getFifthMsbOfKnown()
      Returns:
      true if the fifth MSB of the known field is set to 1; false otherwise.
    • getFourthMsbOfKnown

      public boolean getFourthMsbOfKnown()
      Returns:
      true if the fourth MSB of the known field is set to 1; false otherwise.
    • getThirdMsbOfKnown

      public boolean getThirdMsbOfKnown()
      Returns:
      true if the third MSB of the known field is set to 1; false otherwise.
    • getSecondMsbOfKnown

      public boolean getSecondMsbOfKnown()
      Returns:
      true if the second MSB of the known field is set to 1; false otherwise.
    • getMsbOfKnown

      public boolean getMsbOfKnown()
      Returns:
      true if the MSB of the known field is set to 1; false otherwise.
    • isStbc

      public boolean isStbc()
      Returns:
      true if all spatial streams of all users have STBC; false otherwise.
    • isTxopPsNotAllowed

      public boolean isTxopPsNotAllowed()
      Returns:
      true if STAs may not doze during TXOP or transmitter is non-AP; false otherwise.
    • isShortGuardInterval

      public boolean isShortGuardInterval()
      Returns:
      true if short GI; false otherwise.
    • isShortGiNsymDisambiguation

      public boolean isShortGiNsymDisambiguation()
      Returns:
      true if NSYM mod 10 = 9; false otherwise.
    • isLdpcExtraOfdmSymbol

      public boolean isLdpcExtraOfdmSymbol()
      Returns:
      true if one or more users are using LDPC and the encoding process resulted in extra OFDM symbol(s); false otherwise.
    • isBeamformed

      public boolean isBeamformed()
      Returns:
      true if Beamformed; false otherwise.
    • getSecondMsbOfFlags

      public boolean getSecondMsbOfFlags()
      Returns:
      true if the second 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.
    • getBandwidth

      public RadiotapVhtBandwidth getBandwidth()
      Returns:
      bandwidth
    • getMcses

      public byte[] getMcses()
      Returns:
      MCSes for four users. mcses[n] is for user n.
    • getNsses

      public byte[] getNsses()
      Returns:
      NSSes for four users. nsses[n] is for user n.
    • getFecTypes

      public RadiotapFecType[] getFecTypes()
      Returns:
      FEC types for four users. fecTypes[n] is for user n.
    • getUnusedInCoding

      public byte getUnusedInCoding()
      Returns:
      unusedInCoding
    • getGroupId

      public byte getGroupId()
      Returns:
      groupId
    • getGroupIdAsInt

      public int getGroupIdAsInt()
      Returns:
      groupId
    • getPartialAid

      public short getPartialAid()
      Returns:
      partialAid
    • getPartialAidAsInt

      public int getPartialAidAsInt()
      Returns:
      partialAid
    • 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 RadiotapDataVht.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