java.lang.Object
org.pcap4j.packet.RadiotapDataTsft
- All Implemented Interfaces:
Serializable,RadiotapPacket.RadiotapData
Radiotap TSFT field. Value in microseconds of the MAC's 64-bit 802.11 Time Synchronization
Function timer when the first bit of the MPDU arrived at the MAC. For received frames only.
- Since:
- pcap4j 1.6.5
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final intprivate final BigIntegerprivate static final long -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateRadiotapDataTsft(byte[] rawData, int offset, int length) privateRadiotapDataTsft(RadiotapDataTsft.Builder builder) -
Method Summary
Modifier and TypeMethodDescriptionbooleanbyte[]inthashCode()intlength()static RadiotapDataTsftnewInstance(byte[] rawData, int offset, int length) A static factory method.toString()
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
LENGTH
private static final int LENGTH- See Also:
-
macTimestamp
-
-
Constructor Details
-
RadiotapDataTsft
- Throws:
IllegalRawDataException
-
RadiotapDataTsft
-
-
Method Details
-
newInstance
public static RadiotapDataTsft 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 RadiotapTsft object.
- Throws:
IllegalRawDataException- if parsing the raw data fails.
-
getMacTimestamp
- Returns:
- macTimestamp (unit: microseconds)
-
length
public int length()- Specified by:
lengthin interfaceRadiotapPacket.RadiotapData- Returns:
- length
-
getRawData
public byte[] getRawData()- Specified by:
getRawDatain interfaceRadiotapPacket.RadiotapData- Returns:
- raw data
-
getBuilder
- Returns:
- a new Builder object populated with this object's fields.
-
toString
-
toString
- Specified by:
toStringin interfaceRadiotapPacket.RadiotapData- Parameters:
indent- indent- Returns:
- String representation of this object.
-
hashCode
public int hashCode() -
equals
-