public static final class RadiotapPacket.RadiotapHeader extends AbstractPacket.AbstractHeader
struct ieee80211_radiotap_header {
u_int8_t it_version; // currently, this is always 0
u_int8_t it_pad; // currently unused, just for for the alignment
u_int16_t it_len; // entire length
u_int32_t it_present; // presence mask
} __attribute__((__packed__));
| Modifier and Type | Method and Description |
|---|---|
protected String |
buildString()
This method builds the value
toString() will return. |
protected int |
calcHashCode()
This method builds the value
hashCode() will return using
the byte array getRawData() returns. |
int |
calcLength()
This method calculates the value
length() will return by
adding up the lengths of byte arrays in the list
getRawFields() returns. |
boolean |
equals(Object obj)
Indicates whether some other object is "equal to" this one using
return values of
getRawData(). |
ArrayList<RadiotapPacket.RadiotapData> |
getDataFields() |
short |
getLength() |
int |
getLengthAsInt() |
byte |
getPad() |
ArrayList<RadiotapPresentBitmask> |
getPresentBitmasks() |
protected List<byte[]> |
getRawFields()
Returns a list of byte arrays which represents this header's fields.
|
byte |
getVersion() |
int |
getVersionAsInt() |
buildHexString, buildRawData, getRawData, hashCode, length, toHexString, toStringpublic byte getVersion()
public int getVersionAsInt()
public byte getPad()
public short getLength()
public int getLengthAsInt()
public ArrayList<RadiotapPresentBitmask> getPresentBitmasks()
public ArrayList<RadiotapPacket.RadiotapData> getDataFields()
protected List<byte[]> getRawFields()
AbstractPacket.AbstractHeadercalcLength()
and buildRawData().getRawFields in class AbstractPacket.AbstractHeaderpublic int calcLength()
AbstractPacket.AbstractHeaderlength() will return by
adding up the lengths of byte arrays in the list
getRawFields() returns.calcLength in class AbstractPacket.AbstractHeaderprotected String buildString()
AbstractPacket.AbstractHeadertoString() will return.buildString in class AbstractPacket.AbstractHeaderpublic boolean equals(Object obj)
AbstractPacket.AbstractHeadergetRawData().
This method should be overridden so that it does more strict comparisons
more efficiently.equals in class AbstractPacket.AbstractHeaderprotected int calcHashCode()
AbstractPacket.AbstractHeaderhashCode() will return using
the byte array getRawData() returns.
This method may be better to be overridden for performance reason.calcHashCode in class AbstractPacket.AbstractHeaderCopyright © 2011–2016 Pcap4J.org. All rights reserved.