Class LlcControlUnnumbered
java.lang.Object
org.pcap4j.packet.LlcControlUnnumbered
- All Implemented Interfaces:
Serializable, LlcPacket.LlcControl
The Control field of an LLC header in U-format.
0 1 2 3 4 5 6 7
+-----+-----+-----+-----+-----+-----+-----+-----+
| modifier | P/F | modifier | 1 | 1 |
| func bits | | func bits | | |
+-----+-----+-----+-----+-----+-----+-----+-----+
- Since:
- pcap4j 1.6.5
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final LlcControlModifierFunctionprivate final booleanprivate static final long -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleangetPfBit()byte[]inthashCode()intlength()static LlcControlUnnumberednewInstance(byte value) toString()
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
modifierFunction
-
pfBit
private final boolean pfBit
-
-
Constructor Details
-
LlcControlUnnumbered
- Throws:
IllegalRawDataException
-
LlcControlUnnumbered
-
-
Method Details
-
newInstance
- Parameters:
value- value- Returns:
- a new LlcControlSupervisory object.
- Throws:
IllegalRawDataException- if parsing the value fails.
-
getModifierFunction
- Returns:
- modifierFunction
-
getPfBit
public boolean getPfBit()- Returns:
- true if the P/F bit is set to 1; otherwise false.
-
length
public int length()- Specified by:
lengthin interfaceLlcPacket.LlcControl- Returns:
- length
-
getRawData
public byte[] getRawData()- Specified by:
getRawDatain interfaceLlcPacket.LlcControl- Returns:
- raw data
-
getBuilder
- Returns:
- a new Builder object populated with this object's fields.
-
toString
-
hashCode
-
equals
-