Package org.pcap4j.packet
Class RadiotapDataAMpduStatus
- 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
- Author:
- Kaito Yamada
- See Also:
- Radiotap, Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
RadiotapDataAMpduStatus.Builder
-
Method Summary
Modifier and Type Method Description boolean
equals(java.lang.Object obj)
RadiotapDataAMpduStatus.Builder
getBuilder()
byte
getDelimiterCrcValue()
boolean
getDriverReportsZeroLengthSubframes()
boolean
getEighthMsbOfFlags()
boolean
getFifthMsbOfFlags()
boolean
getFourthMsbOfFlags()
boolean
getMsbOfFlags()
boolean
getNinthMsbOfFlags()
byte[]
getRawData()
int
getReferenceNumber()
long
getReferenceNumberAsLong()
byte
getReserved()
boolean
getSecondMsbOfFlags()
boolean
getSeventhMsbOfFlags()
boolean
getSixthMsbOfFlags()
boolean
getTenthMsbOfFlags()
boolean
getThirdMsbOfFlags()
int
hashCode()
boolean
isDelimiterCrcError()
boolean
isDelimiterCrcValueKnown()
boolean
isLastSubframe()
boolean
isLastSubframeKnown()
boolean
isZeroLengthSubframe()
int
length()
static RadiotapDataAMpduStatus
newInstance(byte[] rawData, int offset, int length)
A static factory method.java.lang.String
toString()
java.lang.String
toString(java.lang.String indent)
-
-
-
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:
length
in interfaceRadiotapPacket.RadiotapData
- Returns:
- length
-
getRawData
public byte[] getRawData()
- Specified by:
getRawData
in 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:
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
-
-