Class Dot11FrameControl
java.lang.Object
org.pcap4j.packet.Dot11FrameControl
- All Implemented Interfaces:
Serializable
Frame control field of an IEEE802.11 frame.
0 1 2 3 4 5 6 7
+----------+----------+----------+----------+----------+----------+----------+----------+
| Protocol | Type | Subtype |
| Version | | |
+----------+----------+----------+----------+----------+----------+----------+----------+
| To DS | From DS |More | Retry |Power | More |Protected | Order |
| | |Fragments | |Management| Data |Frame | |
+----------+----------+----------+----------+----------+----------+----------+----------+
- Since:
- pcap4j 1.7.0
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classstatic enumProtocol version of IEEE802.11 frame -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final booleanprivate final booleanprivate final booleanprivate final booleanprivate final booleanprivate final booleanprivate final Dot11FrameControl.ProtocolVersionprivate final booleanprivate static final longprivate final booleanprivate final Dot11FrameType -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateDot11FrameControl(byte[] rawData, int offset, int length) private -
Method Summary
Modifier and TypeMethodDescriptionbooleanbyte[]getType()inthashCode()booleanisFromDs()booleanbooleanbooleanisOrder()booleanbooleanbooleanisRetry()booleanisToDs()intlength()static Dot11FrameControlnewInstance(byte[] rawData, int offset, int length) A static factory method.toString()
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
protocolVersion
-
type
-
toDs
private final boolean toDs -
fromDs
private final boolean fromDs -
moreFragments
private final boolean moreFragments -
retry
private final boolean retry -
powerManagement
private final boolean powerManagement -
moreData
private final boolean moreData -
protectedFrame
private final boolean protectedFrame -
order
private final boolean order
-
-
Constructor Details
-
Dot11FrameControl
- Throws:
IllegalRawDataException
-
Dot11FrameControl
-
-
Method Details
-
newInstance
public static Dot11FrameControl 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 Dot11FrameControl object.
- Throws:
IllegalRawDataException- if parsing the raw data fails.
-
getProtocolVersion
- Returns:
- protocolVersion
-
getType
- Returns:
- type
-
isToDs
public boolean isToDs()- Returns:
- toDs
-
isFromDs
public boolean isFromDs()- Returns:
- fromDs
-
isMoreFragments
public boolean isMoreFragments()- Returns:
- moreFragments
-
isRetry
public boolean isRetry()- Returns:
- retry
-
isPowerManagement
public boolean isPowerManagement()- Returns:
- powerManagement
-
isMoreData
public boolean isMoreData()- Returns:
- moreData
-
isProtectedFrame
public boolean isProtectedFrame()- Returns:
- protectedFrame
-
isOrder
public boolean isOrder()- Returns:
- order
-
getBuilder
- Returns:
- a new Builder object populated with this object's fields.
-
getRawData
public byte[] getRawData()- Returns:
- the raw data.
-
length
public int length()- Returns:
- length
-
toString
-
toString
-
hashCode
-
equals
-