public abstract class Dot11ManagementPacket extends AbstractPacket
| Modifier and Type | Class and Description |
|---|---|
static class |
Dot11ManagementPacket.Builder |
static class |
Dot11ManagementPacket.Dot11ManagementHeader
Header of IEEE802.11 management frame
0 15 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Frame Control | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Duration | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | | Address1 | | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | | Address2 | | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | | Address3 | | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Sequence Control | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | HT Control | | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ |
AbstractPacket.AbstractBuilder, AbstractPacket.AbstractHeaderPacket.Header| Modifier | Constructor and Description |
|---|---|
protected |
Dot11ManagementPacket(byte[] rawData,
int offset,
int length,
int headerLen) |
protected |
Dot11ManagementPacket(Dot11ManagementPacket.Builder builder,
Dot11ManagementPacket.Dot11ManagementHeader header) |
| Modifier and Type | Method and Description |
|---|---|
protected byte[] |
buildRawData()
This method builds the value
getRawData() will return by
concatenating the header's raw data and the payload's raw data. |
protected java.lang.String |
buildString()
This method builds the value
toString() will return by
concatenating the header's string representation and the payload's string representation. |
protected int |
calcLength()
This method calculates the value
length() will return by
adding up the header length and the payload length. |
abstract Dot11ManagementPacket.Builder |
getBuilder()
Returns a new Builder object populated with this object's fields' values.
|
java.lang.Integer |
getFcs() |
abstract Dot11ManagementPacket.Dot11ManagementHeader |
getHeader()
Returns the Header object representing this packet's header.
|
boolean |
hasValidFcs() |
buildHexString, calcHashCode, equals, getPayload, getRawData, hashCode, length, toHexString, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitcontains, get, getOuterOf, iteratorprotected Dot11ManagementPacket(byte[] rawData,
int offset,
int length,
int headerLen)
rawData - rawDataoffset - offsetlength - lengthheaderLen - headerLenprotected Dot11ManagementPacket(Dot11ManagementPacket.Builder builder, Dot11ManagementPacket.Dot11ManagementHeader header)
builder - builderheader - headerpublic abstract Dot11ManagementPacket.Dot11ManagementHeader getHeader()
AbstractPacketgetHeader in interface PacketgetHeader in class AbstractPacketpublic java.lang.Integer getFcs()
protected int calcLength()
AbstractPacketlength() will return by
adding up the header length and the payload length.
If you write this subclass which represents a packet with extra parts (e.g. a trailer),
you need to override this method.calcLength in class AbstractPacketprotected byte[] buildRawData()
AbstractPacketgetRawData() will return by
concatenating the header's raw data and the payload's raw data.
If you write this subclass which represents a packet with extra parts (e.g. a trailer),
you need to override this method.buildRawData in class AbstractPacketprotected java.lang.String buildString()
AbstractPackettoString() will return by
concatenating the header's string representation and the payload's string representation.
If you write this subclass which represents a packet with extra parts (e.g. a trailer),
you need to override this method.buildString in class AbstractPacketpublic abstract Dot11ManagementPacket.Builder getBuilder()
PacketgetBuilder in interface PacketgetBuilder in class AbstractPacketpublic boolean hasValidFcs()
Copyright © 2011 - 2018 Pcap4J.org. All rights reserved.