Module org.pcap4j.core
Package org.pcap4j.packet
Class Dot11ProbeRequestPacket.Dot11ProbeRequestHeader
java.lang.Object
org.pcap4j.packet.AbstractPacket.AbstractHeader
org.pcap4j.packet.Dot11ManagementPacket.Dot11ManagementHeader
org.pcap4j.packet.Dot11ProbeRequestPacket.Dot11ProbeRequestHeader
- All Implemented Interfaces:
Serializable,Packet.Header
- Enclosing class:
Dot11ProbeRequestPacket
public static final class Dot11ProbeRequestPacket.Dot11ProbeRequestHeader
extends Dot11ManagementPacket.Dot11ManagementHeader
Header of IEEE802.11 Probe Request
0 15 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Frame Control | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Duration | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | | Address1 | | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | | Address2 | | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | | Address3 | | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Sequence Control | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | HT Control | | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | | Frame Body | | |
| 1 | SSID | If dot11MeshActivated is true, the SSID element is the wildcard value. |
| 2 | Supported rates | |
| 3 | Request information | The Request element is optionally present if dot11MultiDomainCapabilityActivated is true. |
| 4 | Extended Supported Rates | The Extended Supported Rates element is present if there are more than eight supported rates, and is optionally present otherwise. |
| 5 | DSSS Parameter Set | The DSSS Parameter Set element is present within Probe Request frames generated by STAs using Clause 16, Clause 17, or Clause 19 PHYs if dot11RadioMeasurementActivated is true. The DSSS Parameter Set element is present within Probe Request frames generated by STAs using a Clause 20 PHY in the 2.4 GHz band if dot11RadioMeasurementActivated is true. The DSSS Parameter Set element is optionally present within Probe Request frames generated by STAs using Clause 16, Clause 17, or Clause 19 PHYs if dot11RadioMeasurementActivated is false. The DSSS Parameter Set element is optionally present within Probe Request frames generated by STAs using a Clause 20 PHY in the 2.4 GHz band if dot11RadioMeasurementActivated is false. |
| 6 | Supported Operating Classes | The Supported Operating Classes element is present if dot11ExtendedChannelSwitchActivated is true. |
| 7 | HT Capabilities | The HT Capabilities element is present when dot11HighThroughputOptionImplemented attribute is true. |
| 8 | 20/40 BSS Coexistence | The 20/40 BSS Coexistence element is optionally present when the dot112040BSSCoexistenceManagementSupport attribute is true. |
| 9 | Extended Capabilities | The Extended Capabilities element is optionally present if any of the fields in this element are nonzero. |
| 10 | SSID List | The SSID List element is optionally present if dot11MgmtOptionSSIDListActivated is true. |
| 11 | Channel Usage | The Channel Usage element is optionally present if dot11MgmtOptionChannelUsageActivated is true. |
| 12 | Interworking | The Interworking element is present if dot11InterworkingServiceActivated is true. |
| 13 | Mesh ID | The Mesh ID element is present if dot11MeshActivated is true. |
| Last | Vendor Specific | One or more vendor-specific elements are optionally present. These elements follow all other elements. |
- Since:
- pcap4j 1.7.0
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Dot11ChannelUsageElementprivate final Dot11DsssParameterSetElementprivate final Dot11ExtendedCapabilitiesElementprivate final Dot11ExtendedSupportedRatesElementprivate final Dot11HTCapabilitiesElementprivate final Dot11InterworkingElementprivate final Dot11MeshIdElementprivate final Dot11RequestElementprivate static final longprivate final Dot11SsidElementprivate final Dot11SsidListElementprivate final Dot11SupportedOperatingClassesElementprivate final Dot11SupportedRatesElementprivate final Dot112040BssCoexistenceElementprivate final List<Dot11VendorSpecificElement> -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateDot11ProbeRequestHeader(byte[] rawData, int offset, int length) private -
Method Summary
Modifier and TypeMethodDescriptionprotected StringThis method builds the valuetoString()will return.protected intThis method builds the valuehashCode()will return using the byte arraygetRawData()returns.intThis method calculates the valuelength()will return by adding up the lengths of byte arrays in the listgetRawFields()returns.booleanIndicates whether some other object is "equal to" this one using return values ofgetRawData().protected Stringprotected List<byte[]> Returns a list of byte arrays which represents this header's fields.getSsid()Methods inherited from class org.pcap4j.packet.Dot11ManagementPacket.Dot11ManagementHeader
getAddress1, getAddress2, getAddress3, getDuration, getDurationAsInt, getFrameControl, getHtControl, getSequenceControlMethods inherited from class org.pcap4j.packet.AbstractPacket.AbstractHeader
buildHexString, buildRawData, getRawData, hashCode, length, toHexString, toString
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
ssid
-
supportedRates
-
request
-
extendedSupportedRates
-
dsssParameterSet
-
supportedOperatingClasses
-
htCapabilities
-
twentyFortyBssCoexistence
-
extendedCapabilities
-
ssidList
-
channelUsage
-
interworking
-
meshId
-
vendorSpecificElements
-
-
Constructor Details
-
Dot11ProbeRequestHeader
private Dot11ProbeRequestHeader(byte[] rawData, int offset, int length) throws IllegalRawDataException - Throws:
IllegalRawDataException
-
Dot11ProbeRequestHeader
-
-
Method Details
-
getSsid
- Returns:
- ssid. May be null.
-
getSupportedRates
- Returns:
- supportedRates. May be null.
-
getRequest
- Returns:
- request. May be null.
-
getExtendedSupportedRates
- Returns:
- extendedSupportedRates. May be null.
-
getDsssParameterSet
- Returns:
- dsssParameterSet. May be null.
-
getSupportedOperatingClasses
- Returns:
- supportedOperatingClasses. May be null.
-
getHtCapabilities
- Returns:
- htCapabilities. May be null.
-
get2040BssCoexistence
- Returns:
- twentyFortyBssCoexistence. May be null.
-
getExtendedCapabilities
- Returns:
- extendedCapabilities. May be null.
-
getSsidList
- Returns:
- ssidList. May be null.
-
getChannelUsage
- Returns:
- channelUsage. May be null.
-
getInterworking
- Returns:
- interworking. May be null.
-
getMeshId
- Returns:
- meshId. May be null.
-
getVendorSpecificElements
- Returns:
- vendorSpecificElements
-
getRawFields
Description copied from class:AbstractPacket.AbstractHeaderReturns a list of byte arrays which represents this header's fields. This method is called bycalcLength()andbuildRawData().- Overrides:
getRawFieldsin classDot11ManagementPacket.Dot11ManagementHeader- Returns:
- a list of byte arrays which represents this header's fields
-
calcLength
public int calcLength()Description copied from class:AbstractPacket.AbstractHeaderThis method calculates the valuelength()will return by adding up the lengths of byte arrays in the listgetRawFields()returns.- Overrides:
calcLengthin classDot11ManagementPacket.Dot11ManagementHeader- Returns:
- a calculated length
-
buildString
Description copied from class:AbstractPacket.AbstractHeaderThis method builds the valuetoString()will return.- Overrides:
buildStringin classDot11ManagementPacket.Dot11ManagementHeader- Returns:
- a string representation of this object
-
getHeaderName
- Specified by:
getHeaderNamein classDot11ManagementPacket.Dot11ManagementHeader- Returns:
- the header name.
-
calcHashCode
protected int calcHashCode()Description copied from class:AbstractPacket.AbstractHeaderThis method builds the valuehashCode()will return using the byte arraygetRawData()returns. This method may be better to be overridden for performance reason.- Overrides:
calcHashCodein classDot11ManagementPacket.Dot11ManagementHeader- Returns:
- a calculated hash code value for the object
-
equals
Description copied from class:AbstractPacket.AbstractHeaderIndicates whether some other object is "equal to" this one using return values ofgetRawData(). This method should be overridden so that it does more strict comparisons more efficiently.- Overrides:
equalsin classDot11ManagementPacket.Dot11ManagementHeader
-