Package org.pcap4j.packet
Class RadiotapDataVht
- 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
- Author:
- Kaito Yamada
- See Also:
- Radiotap, Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
RadiotapDataVht.Builder
-
Method Summary
-
-
-
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:
length
in interfaceRadiotapPacket.RadiotapData
- Returns:
- length
-
getRawData
public byte[] getRawData()
- Specified by:
getRawData
in 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:
toString
in classjava.lang.Object
-
toString
public java.lang.String toString(java.lang.String indent)
- Specified by:
toString
in interfaceRadiotapPacket.RadiotapData
- Parameters:
indent
- indent- Returns:
- String representation of this object.
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
-