java.lang.Object
org.pcap4j.packet.AbstractPacket
org.pcap4j.packet.Dot11ManagementPacket
- All Implemented Interfaces:
Serializable,Iterable<Packet>,Packet
- Direct Known Subclasses:
Dot11ProbeRequestPacket
IEEE802.11 management frame
- Since:
- pcap4j 1.7.0
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classHeader of IEEE802.11 management frameNested classes/interfaces inherited from class org.pcap4j.packet.AbstractPacket
AbstractPacket.AbstractBuilder, AbstractPacket.AbstractHeaderNested classes/interfaces inherited from interface org.pcap4j.packet.Packet
Packet.Header -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDot11ManagementPacket(byte[] rawData, int offset, int length, int headerLen) protectedDot11ManagementPacket(Dot11ManagementPacket.Builder builder, Dot11ManagementPacket.Dot11ManagementHeader header) -
Method Summary
Modifier and TypeMethodDescriptionprotected byte[]This method builds the valuegetRawData()will return by concatenating the header's raw data and the payload's raw data.protected StringThis method builds the valuetoString()will return by concatenating the header's string representation and the payload's string representation.protected intThis method calculates the valuelength()will return by adding up the header length and the payload length.abstract Dot11ManagementPacket.BuilderReturns a new Builder object populated with this object's fields' values.getFcs()Returns the Header object representing this packet's header.booleanMethods inherited from class org.pcap4j.packet.AbstractPacket
buildHexString, calcHashCode, contains, equals, get, getOuterOf, getPayload, getRawData, hashCode, iterator, length, toHexString, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
fcs
-
-
Constructor Details
-
Dot11ManagementPacket
protected Dot11ManagementPacket(byte[] rawData, int offset, int length, int headerLen) - Parameters:
rawData- rawDataoffset- offsetlength- lengthheaderLen- headerLen
-
Dot11ManagementPacket
protected Dot11ManagementPacket(Dot11ManagementPacket.Builder builder, Dot11ManagementPacket.Dot11ManagementHeader header) - Parameters:
builder- builderheader- header
-
-
Method Details
-
getHeader
Description copied from class:AbstractPacketReturns the Header object representing this packet's header. This subclass have to override this method if the packet represented by the subclass has a header.- Specified by:
getHeaderin interfacePacket- Overrides:
getHeaderin classAbstractPacket- Returns:
- the Header object representing this packet's header. May be null if the header doesn't exist
-
getFcs
- Returns:
- fcs. May be null.
-
calcLength
protected int calcLength()Description copied from class:AbstractPacketThis method calculates the valuelength()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.- Overrides:
calcLengthin classAbstractPacket- Returns:
- a calculated length
-
buildRawData
protected byte[] buildRawData()Description copied from class:AbstractPacketThis method builds the valuegetRawData()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.- Overrides:
buildRawDatain classAbstractPacket- Returns:
- a raw data built
-
buildString
Description copied from class:AbstractPacketThis method builds the valuetoString()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.- Overrides:
buildStringin classAbstractPacket- Returns:
- a string representation of this object
-
getBuilder
Description copied from interface:PacketReturns a new Builder object populated with this object's fields' values.- Specified by:
getBuilderin interfacePacket- Specified by:
getBuilderin classAbstractPacket- Returns:
- a new Builder object populated with this object's fields values
-
hasValidFcs
public boolean hasValidFcs()- Returns:
- true if this FCS is present and valid; false otherwise.
-