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:
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
- See Also:
- IEEE802.11, Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private Dot11ChannelUsageElementchannelUsageprivate Dot11DsssParameterSetElementdsssParameterSetprivate Dot11ExtendedCapabilitiesElementextendedCapabilitiesprivate Dot11ExtendedSupportedRatesElementextendedSupportedRatesprivate Dot11HTCapabilitiesElementhtCapabilitiesprivate Dot11InterworkingElementinterworkingprivate Dot11MeshIdElementmeshIdprivate Dot11RequestElementrequestprivate static longserialVersionUIDprivate Dot11SsidElementssidprivate Dot11SsidListElementssidListprivate Dot11SupportedOperatingClassesElementsupportedOperatingClassesprivate Dot11SupportedRatesElementsupportedRatesprivate Dot112040BssCoexistenceElementtwentyFortyBssCoexistenceprivate java.util.List<Dot11VendorSpecificElement>vendorSpecificElements
-
Constructor Summary
Constructors Modifier Constructor Description privateDot11ProbeRequestHeader(byte[] rawData, int offset, int length)privateDot11ProbeRequestHeader(Dot11ProbeRequestPacket.Builder builder)
-
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
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
ssid
private final Dot11SsidElement ssid
-
supportedRates
private final Dot11SupportedRatesElement supportedRates
-
request
private final Dot11RequestElement request
-
extendedSupportedRates
private final Dot11ExtendedSupportedRatesElement extendedSupportedRates
-
dsssParameterSet
private final Dot11DsssParameterSetElement dsssParameterSet
-
supportedOperatingClasses
private final Dot11SupportedOperatingClassesElement supportedOperatingClasses
-
htCapabilities
private final Dot11HTCapabilitiesElement htCapabilities
-
twentyFortyBssCoexistence
private final Dot112040BssCoexistenceElement twentyFortyBssCoexistence
-
extendedCapabilities
private final Dot11ExtendedCapabilitiesElement extendedCapabilities
-
ssidList
private final Dot11SsidListElement ssidList
-
channelUsage
private final Dot11ChannelUsageElement channelUsage
-
interworking
private final Dot11InterworkingElement interworking
-
meshId
private final Dot11MeshIdElement meshId
-
vendorSpecificElements
private final java.util.List<Dot11VendorSpecificElement> vendorSpecificElements
-
-
Constructor Detail
-
Dot11ProbeRequestHeader
private Dot11ProbeRequestHeader(byte[] rawData, int offset, int length) throws IllegalRawDataException- Throws:
IllegalRawDataException
-
Dot11ProbeRequestHeader
private Dot11ProbeRequestHeader(Dot11ProbeRequestPacket.Builder builder)
-
-
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.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
protected java.lang.String 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
protected java.lang.String 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
public boolean equals(java.lang.Object obj)
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
-
-