Class Dot11MeshIdElement
java.lang.Object
org.pcap4j.packet.Dot11InformationElement
org.pcap4j.packet.Dot11MeshIdElement
- All Implemented Interfaces:
Serializable
IEEE802.11 Mesh ID element
1 1 0-32
+----------+----------+----------
|Element ID| Length | Mesh ID
+----------+----------+----------
Element ID: 114
The Mesh ID element is used to advertise the identification of an MBSS. The Mesh ID element is
transmitted in Mesh Peering Open frames, Mesh Peering Confirm frames, Mesh Peering Close frames,
Beacon frames, and Probe Request and Response frames. A Mesh ID field of length 0 indicates the
wildcard Mesh ID, which is used within Probe Request frame.- Since:
- pcap4j 1.7.0
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final byte[]private static final long -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateDot11MeshIdElement(byte[] rawData, int offset, int length) private -
Method Summary
Modifier and TypeMethodDescriptionbooleanbyte[]byte[]inthashCode()intlength()static Dot11MeshIdElementnewInstance(byte[] rawData, int offset, int length) A static factory method.toString()Methods inherited from class Dot11InformationElement
getElementId, getLength, getLengthAsInt
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
meshId
private final byte[] meshId
-
-
Constructor Details
-
Dot11MeshIdElement
- Parameters:
rawData- rawDataoffset- offsetlength- length- Throws:
IllegalRawDataException- if parsing the raw data fails.
-
Dot11MeshIdElement
- Parameters:
builder- builder
-
-
Method Details
-
newInstance
public static Dot11MeshIdElement 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 Dot11MeshIdElement object.
- Throws:
IllegalRawDataException- if parsing the raw data fails.
-
getMeshId
public byte[] getMeshId()- Returns:
- meshId
-
length
public int length()- Specified by:
lengthin classDot11InformationElement- Returns:
- the length
-
getRawData
public byte[] getRawData()- Specified by:
getRawDatain classDot11InformationElement- Returns:
- the raw data.
-
getBuilder
- Returns:
- a new Builder object populated with this object's fields.
-
hashCode
public int hashCode()- Overrides:
hashCodein classDot11InformationElement
-
equals
- Overrides:
equalsin classDot11InformationElement
-
toString
-
toString
-