- java.lang.Object
-
- org.pcap4j.packet.RadiotapDataAMpduStatus
-
- All Implemented Interfaces:
java.io.Serializable,RadiotapPacket.RadiotapData
public final class RadiotapDataAMpduStatus extends java.lang.Object implements RadiotapPacket.RadiotapData
Radiotap A-MPDU status field.- Since:
- pcap4j 1.6.5
- See Also:
- Radiotap, Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classRadiotapDataAMpduStatus.Builder
-
Field Summary
Fields Modifier and Type Field Description private booleandelimiterCrcErrorprivate bytedelimiterCrcValueprivate booleandelimiterCrcValueKnownprivate booleandriverReportsZeroLengthSubframesprivate booleaneighthMsbOfFlagsprivate booleanfifthMsbOfFlagsprivate booleanfourthMsbOfFlagsprivate booleanlastSubframeprivate booleanlastSubframeKnownprivate static intLENGTHprivate booleanmsbOfFlagsprivate booleanninthMsbOfFlagsprivate intreferenceNumberprivate bytereservedprivate booleansecondMsbOfFlagsprivate static longserialVersionUIDprivate booleanseventhMsbOfFlagsprivate booleansixthMsbOfFlagsprivate booleantenthMsbOfFlagsprivate booleanthirdMsbOfFlagsprivate booleanzeroLengthSubframe
-
Constructor Summary
Constructors Modifier Constructor Description privateRadiotapDataAMpduStatus(byte[] rawData, int offset, int length)privateRadiotapDataAMpduStatus(RadiotapDataAMpduStatus.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
-
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 Detail
-
RadiotapDataAMpduStatus
private RadiotapDataAMpduStatus(byte[] rawData, int offset, int length) throws IllegalRawDataException- Throws:
IllegalRawDataException
-
RadiotapDataAMpduStatus
private RadiotapDataAMpduStatus(RadiotapDataAMpduStatus.Builder builder)
-
-
Method Detail
-
newInstance
public static RadiotapDataAMpduStatus 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 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:
lengthin interfaceRadiotapPacket.RadiotapData- Returns:
- length
-
getRawData
public byte[] getRawData()
- Specified by:
getRawDatain interfaceRadiotapPacket.RadiotapData- Returns:
- raw data
-
getBuilder
public RadiotapDataAMpduStatus.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
-
-