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:
java.io.Serializable
,Packet.Header
- Enclosing class:
- Dot11ProbeRequestPacket
public static final class Dot11ProbeRequestPacket.Dot11ProbeRequestHeader extends Dot11ManagementPacket.Dot11ManagementHeader
Header of IEEE802.11 Probe Request0 15 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Frame Control | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Duration | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | | Address1 | | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | | Address2 | | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | | Address3 | | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Sequence Control | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | HT Control | | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | | Frame Body | | |
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
- Author:
- Kaito Yamada
- See Also:
- IEEE802.11, Serialized Form
-
-
Method Summary
-
Methods inherited from class org.pcap4j.packet.Dot11ManagementPacket.Dot11ManagementHeader
getAddress1, getAddress2, getAddress3, getDuration, getDurationAsInt, getFrameControl, getHtControl, getSequenceControl
-
Methods inherited from class org.pcap4j.packet.AbstractPacket.AbstractHeader
buildHexString, buildRawData, getRawData, hashCode, length, toHexString, toString
-
-
-
-
Method Detail
-
getSsid
public Dot11SsidElement getSsid()
- Returns:
- ssid. May be null.
-
getSupportedRates
public Dot11SupportedRatesElement getSupportedRates()
- Returns:
- supportedRates. May be null.
-
getRequest
public Dot11RequestElement getRequest()
- Returns:
- request. May be null.
-
getExtendedSupportedRates
public Dot11ExtendedSupportedRatesElement getExtendedSupportedRates()
- Returns:
- extendedSupportedRates. May be null.
-
getDsssParameterSet
public Dot11DsssParameterSetElement getDsssParameterSet()
- Returns:
- dsssParameterSet. May be null.
-
getSupportedOperatingClasses
public Dot11SupportedOperatingClassesElement getSupportedOperatingClasses()
- Returns:
- supportedOperatingClasses. May be null.
-
getHtCapabilities
public Dot11HTCapabilitiesElement getHtCapabilities()
- Returns:
- htCapabilities. May be null.
-
get2040BssCoexistence
public Dot112040BssCoexistenceElement get2040BssCoexistence()
- Returns:
- twentyFortyBssCoexistence. May be null.
-
getExtendedCapabilities
public Dot11ExtendedCapabilitiesElement getExtendedCapabilities()
- Returns:
- extendedCapabilities. May be null.
-
getSsidList
public Dot11SsidListElement getSsidList()
- Returns:
- ssidList. May be null.
-
getChannelUsage
public Dot11ChannelUsageElement getChannelUsage()
- Returns:
- channelUsage. May be null.
-
getInterworking
public Dot11InterworkingElement getInterworking()
- Returns:
- interworking. May be null.
-
getMeshId
public Dot11MeshIdElement getMeshId()
- Returns:
- meshId. May be null.
-
getVendorSpecificElements
public java.util.List<Dot11VendorSpecificElement> getVendorSpecificElements()
- Returns:
- vendorSpecificElements
-
getRawFields
protected java.util.List<byte[]> getRawFields()
Description copied from class:AbstractPacket.AbstractHeader
Returns a list of byte arrays which represents this header's fields. This method is called bycalcLength()
andbuildRawData()
.- Overrides:
getRawFields
in classDot11ManagementPacket.Dot11ManagementHeader
- Returns:
- a list of byte arrays which represents this header's fields
-
calcLength
public int calcLength()
Description copied from class:AbstractPacket.AbstractHeader
This method calculates the valuelength()
will return by adding up the lengths of byte arrays in the listgetRawFields()
returns.- Overrides:
calcLength
in classDot11ManagementPacket.Dot11ManagementHeader
- Returns:
- a calculated length
-
buildString
protected java.lang.String buildString()
Description copied from class:AbstractPacket.AbstractHeader
This method builds the valuetoString()
will return.- Overrides:
buildString
in classDot11ManagementPacket.Dot11ManagementHeader
- Returns:
- a string representation of this object
-
getHeaderName
protected java.lang.String getHeaderName()
- Specified by:
getHeaderName
in classDot11ManagementPacket.Dot11ManagementHeader
- Returns:
- the header name.
-
calcHashCode
protected int calcHashCode()
Description copied from class:AbstractPacket.AbstractHeader
This method builds the valuehashCode()
will return using the byte arraygetRawData()
returns. This method may be better to be overridden for performance reason.- Overrides:
calcHashCode
in classDot11ManagementPacket.Dot11ManagementHeader
- Returns:
- a calculated hash code value for the object
-
equals
public boolean equals(java.lang.Object obj)
Description copied from class:AbstractPacket.AbstractHeader
Indicates 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:
equals
in classDot11ManagementPacket.Dot11ManagementHeader
-
-