- java.lang.Object
-
- org.pcap4j.packet.RadiotapDataVht
-
- All Implemented Interfaces:
java.io.Serializable,RadiotapPacket.RadiotapData
public final class RadiotapDataVht extends java.lang.Object implements RadiotapPacket.RadiotapData
Radiotap VHT field.- Since:
- pcap4j 1.6.5
- See Also:
- Radiotap, Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classRadiotapDataVht.Builder
-
Field Summary
Fields Modifier and Type Field Description private RadiotapVhtBandwidthbandwidthprivate booleanbandwidthKnownprivate booleanbeamformedprivate booleanbeamformedKnownprivate RadiotapFecType[]fecTypesprivate booleanfifthMsbOfKnownprivate booleanfourthMsbOfKnownprivate bytegroupIdprivate booleangroupIdKnownprivate booleanguardIntervalKnownprivate booleanldpcExtraOfdmSymbolprivate booleanldpcExtraOfdmSymbolKnownprivate static intLENGTHprivate byte[]mcsesprivate booleanmsbOfFlagsprivate booleanmsbOfKnownprivate byte[]nssesprivate shortpartialAidprivate booleanpartialAidKnownprivate booleansecondMsbOfFlagsprivate booleansecondMsbOfKnownprivate static longserialVersionUIDprivate booleanseventhMsbOfKnownprivate booleanshortGiNsymDisambiguationprivate booleanshortGiNsymDisambiguationKnownprivate booleanshortGuardIntervalprivate booleansixthMsbOfKnownprivate booleanstbcprivate booleanstbcKnownprivate booleanthirdMsbOfKnownprivate booleantxopPsNotAllowedprivate booleantxopPsNotAllowedKnownprivate byteunusedInCoding
-
Constructor Summary
Constructors Modifier Constructor Description privateRadiotapDataVht(byte[] rawData, int offset, int length)privateRadiotapDataVht(RadiotapDataVht.Builder builder)
-
Method Summary
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
LENGTH
private static final int LENGTH
- See Also:
- Constant Field Values
-
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 Detail
-
RadiotapDataVht
private RadiotapDataVht(byte[] rawData, int offset, int length) throws IllegalRawDataException- Throws:
IllegalRawDataException
-
RadiotapDataVht
private RadiotapDataVht(RadiotapDataVht.Builder builder)
-
-
Method Detail
-
newInstance
public static RadiotapDataVht newInstance(byte[] rawData, int offset, int length) throws IllegalRawDataException
A static factory method. This method validates the arguments byByteArrays.validateBounds(byte[], int, int), which may throw exceptions undocumented here.- Parameters:
rawData- rawDataoffset- offsetlength- 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:
lengthin interfaceRadiotapPacket.RadiotapData- Returns:
- length
-
getRawData
public byte[] getRawData()
- Specified by:
getRawDatain interfaceRadiotapPacket.RadiotapData- Returns:
- raw data
-
getBuilder
public RadiotapDataVht.Builder getBuilder()
- Returns:
- a new Builder object populated with this object's fields.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
toString
public java.lang.String toString(java.lang.String indent)
- Specified by:
toStringin interfaceRadiotapPacket.RadiotapData- Parameters:
indent- indent- Returns:
- String representation of this object.
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
-