java.lang.Object
org.pcap4j.packet.Dot11InformationElement
org.pcap4j.packet.Dot11AbstractSupportedRatesElement
org.pcap4j.packet.Dot11ExtendedSupportedRatesElement
- All Implemented Interfaces:
Serializable
IEEE802.11 Extended Supported Rates element
1 1 1-255
+----------+----------+-------------------------
|Element ID| Length | Extended Supported Rates
+----------+----------+-------------------------
Element ID: 50
The Extended Supported Rates element specifies the rates in the OperationalRateSet parameter and
zero or more BSS membership selector values that are not carried in the Supported Rates element.
The Information field is encoded as 1 to 255 octets where each octet describes a single supported
rate or BSS membership selector. Within Beacon, Probe Response, Association Response,
Reassociation Response, Mesh Peering Open, and Mesh Peering Confirm management frames, each
supported rate contained in the BSSBasicRateSet parameter is encoded as an octet with the MSB
(bit 7) set to 1 and bits 6 to 0 are set to the appropriate value. Rates not contained in the
BSSBasicRateSet parameter are encoded with the MSB set to 0, and bits 6 to 0 are set to the
appropriate value from the valid range. The MSB of each octet in the Extended Supported Rate
element in other management frame types is ignored by receiving STAs. Within Beacon, Probe
Response, Association Response, Reassociation Response, Mesh Peering Open, and Mesh Peering
Confirm management frames, each BSS membership selector contained in the BSSMembershipSelectorSet
parameter is encoded as an octet with the MSB (bit 7) set to 1, and bits 6 to 0 are set to the
encoded value for the selector.- Since:
- pcap4j 1.7.0
- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.pcap4j.packet.Dot11AbstractSupportedRatesElement
Dot11AbstractSupportedRatesElement.BssMembershipSelector, Dot11AbstractSupportedRatesElement.Datum, Dot11AbstractSupportedRatesElement.Rate -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateDot11ExtendedSupportedRatesElement(byte[] rawData, int offset, int length) private -
Method Summary
Modifier and TypeMethodDescriptionnewInstance(byte[] rawData, int offset, int length) A static factory method.Methods inherited from class org.pcap4j.packet.Dot11AbstractSupportedRatesElement
equals, getBssMembershipSelectors, getRates, getRawData, hashCode, length, toString, toStringMethods inherited from class org.pcap4j.packet.Dot11InformationElement
getElementId, getLength, getLengthAsInt
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
-
Constructor Details
-
Dot11ExtendedSupportedRatesElement
private Dot11ExtendedSupportedRatesElement(byte[] rawData, int offset, int length) throws IllegalRawDataException - Parameters:
rawData- rawDataoffset- offsetlength- length- Throws:
IllegalRawDataException- if parsing the raw data fails.
-
Dot11ExtendedSupportedRatesElement
- Parameters:
builder- builder
-
-
Method Details
-
newInstance
public static Dot11ExtendedSupportedRatesElement newInstance(byte[] rawData, int offset, int length) throws IllegalRawDataException A static factory method. This method validates the arguments byByteArrays.validateBounds(byte[], int, int), which may throw exceptions undocumented here.- Parameters:
rawData- rawDataoffset- offsetlength- length- Returns:
- a new Dot11ExtendedSupportedRatesElement object.
- Throws:
IllegalRawDataException- if parsing the raw data fails.
-
getBuilder
- Specified by:
getBuilderin classDot11AbstractSupportedRatesElement- Returns:
- a new Builder object populated with this object's fields.
-
getElementName
- Specified by:
getElementNamein classDot11AbstractSupportedRatesElement- Returns:
- element name
-