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.AbstractHeader
Packet.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 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.
|
Integer |
getFcs() |
abstract Dot11ManagementPacket.Dot11ManagementHeader |
getHeader()
Returns the Header object representing this packet's header.
|
boolean |
hasValidFcs() |
buildHexString, calcHashCode, contains, equals, get, getOuterOf, getPayload, getRawData, hashCode, iterator, length, toHexString, toString
protected 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()
AbstractPacket
getHeader
in interface Packet
getHeader
in class AbstractPacket
public Integer getFcs()
protected int calcLength()
AbstractPacket
length()
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 AbstractPacket
protected byte[] buildRawData()
AbstractPacket
getRawData()
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 AbstractPacket
protected String buildString()
AbstractPacket
toString()
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 AbstractPacket
public abstract Dot11ManagementPacket.Builder getBuilder()
Packet
getBuilder
in interface Packet
getBuilder
in class AbstractPacket
public boolean hasValidFcs()
Copyright © 2011–2018 Pcap4J.org. All rights reserved.