- java.lang.Object
-
- org.pcap4j.packet.LlcControlUnnumbered
-
- All Implemented Interfaces:
java.io.Serializable,LlcPacket.LlcControl
public final class LlcControlUnnumbered extends java.lang.Object implements 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:
- IEEE 802.2, Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classLlcControlUnnumbered.Builder
-
Field Summary
Fields Modifier and Type Field Description private LlcControlModifierFunctionmodifierFunctionprivate booleanpfBitprivate static longserialVersionUID
-
Constructor Summary
Constructors Modifier Constructor Description privateLlcControlUnnumbered(byte value)privateLlcControlUnnumbered(LlcControlUnnumbered.Builder builder)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)LlcControlUnnumbered.BuildergetBuilder()LlcControlModifierFunctiongetModifierFunction()booleangetPfBit()byte[]getRawData()inthashCode()intlength()static LlcControlUnnumberednewInstance(byte value)java.lang.StringtoString()
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
modifierFunction
private final LlcControlModifierFunction modifierFunction
-
pfBit
private final boolean pfBit
-
-
Constructor Detail
-
LlcControlUnnumbered
private LlcControlUnnumbered(byte value) throws IllegalRawDataException- Throws:
IllegalRawDataException
-
LlcControlUnnumbered
private LlcControlUnnumbered(LlcControlUnnumbered.Builder builder)
-
-
Method Detail
-
newInstance
public static LlcControlUnnumbered newInstance(byte value) throws IllegalRawDataException
- Parameters:
value- value- Returns:
- a new LlcControlSupervisory object.
- Throws:
IllegalRawDataException- if parsing the value fails.
-
getModifierFunction
public LlcControlModifierFunction 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
public LlcControlUnnumbered.Builder getBuilder()
- Returns:
- a new Builder object populated with this object's fields.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
-