public abstract static class Dot11ManagementPacket.Dot11ManagementHeader extends AbstractPacket.AbstractHeader
0 15 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Frame Control | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Duration | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | | Address1 | | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | | Address2 | | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | | Address3 | | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Sequence Control | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | HT Control | | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Modifier | Constructor and Description |
|---|---|
protected |
Dot11ManagementHeader(byte[] rawData,
int offset,
int length) |
protected |
Dot11ManagementHeader(Dot11ManagementPacket.Builder builder) |
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.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(java.lang.Object obj)
Indicates whether some other object is "equal to" this one using
return values of
getRawData(). |
MacAddress |
getAddress1() |
MacAddress |
getAddress2() |
MacAddress |
getAddress3() |
short |
getDuration() |
int |
getDurationAsInt() |
Dot11FrameControl |
getFrameControl() |
protected abstract java.lang.String |
getHeaderName() |
Dot11HtControl |
getHtControl() |
protected java.util.List<byte[]> |
getRawFields()
Returns a list of byte arrays which represents this header's fields.
|
Dot11SequenceControl |
getSequenceControl() |
buildHexString, buildRawData, getRawData, hashCode, length, toHexString, toStringprotected Dot11ManagementHeader(byte[] rawData,
int offset,
int length)
throws IllegalRawDataException
rawData - rawDataoffset - offsetlength - lengthIllegalRawDataException - if parsing the raw data fails.protected Dot11ManagementHeader(Dot11ManagementPacket.Builder builder)
builder - builderpublic Dot11FrameControl getFrameControl()
public short getDuration()
public int getDurationAsInt()
public MacAddress getAddress1()
public MacAddress getAddress2()
public MacAddress getAddress3()
public Dot11SequenceControl getSequenceControl()
public Dot11HtControl getHtControl()
protected java.util.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 abstract java.lang.String getHeaderName()
protected java.lang.String buildString()
AbstractPacket.AbstractHeadertoString() will return.buildString 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.AbstractHeaderpublic boolean equals(java.lang.Object obj)
AbstractPacket.AbstractHeadergetRawData().
This method should be overridden so that it does more strict comparisons
more efficiently.equals in class AbstractPacket.AbstractHeaderCopyright © 2011 - 2018 Pcap4J.org. All rights reserved.