- java.lang.Object
-
- org.pcap4j.packet.LlcControlSupervisory
-
- All Implemented Interfaces:
java.io.Serializable,LlcPacket.LlcControl
public final class LlcControlSupervisory extends java.lang.Object implements LlcPacket.LlcControl
The Control field of an LLC header in S-format.0 1 2 3 4 5 6 7 +-----+-----+-----+-----+-----+-----+-----+-----+ | receive sequence number | P/F | | | | +-----+-----+-----+-----+-----+-----+-----+-----+ | reserved |supervisory| 0 | 1 | | | 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 classLlcControlSupervisory.Builder
-
Field Summary
Fields Modifier and Type Field Description private booleanpfBitprivate bytereceiveSequenceNumberprivate bytereservedprivate static longserialVersionUIDprivate LlcControlSupervisoryFunctionsupervisoryFunction
-
Constructor Summary
Constructors Modifier Constructor Description privateLlcControlSupervisory(short value)privateLlcControlSupervisory(LlcControlSupervisory.Builder builder)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)LlcControlSupervisory.BuildergetBuilder()LlcControlSupervisoryFunctiongetLlcSupervisoryFunction()booleangetPfBit()byte[]getRawData()bytegetReceiveSequenceNumber()intgetReceiveSequenceNumberAsInt()bytegetReserved()inthashCode()intlength()static LlcControlSupervisorynewInstance(short value)java.lang.StringtoString()
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
receiveSequenceNumber
private final byte receiveSequenceNumber
-
pfBit
private final boolean pfBit
-
reserved
private final byte reserved
-
supervisoryFunction
private final LlcControlSupervisoryFunction supervisoryFunction
-
-
Constructor Detail
-
LlcControlSupervisory
private LlcControlSupervisory(short value) throws IllegalRawDataException- Throws:
IllegalRawDataException
-
LlcControlSupervisory
private LlcControlSupervisory(LlcControlSupervisory.Builder builder)
-
-
Method Detail
-
newInstance
public static LlcControlSupervisory newInstance(short value) throws IllegalRawDataException
- Parameters:
value- value- Returns:
- a new LlcControlSupervisory object.
- Throws:
IllegalRawDataException- if parsing the value fails.
-
getReceiveSequenceNumber
public byte getReceiveSequenceNumber()
- Returns:
- receiveSequenceNumber
-
getReceiveSequenceNumberAsInt
public int getReceiveSequenceNumberAsInt()
- Returns:
- receiveSequenceNumber
-
getPfBit
public boolean getPfBit()
- Returns:
- true if the P/F bit is set to 1; otherwise false.
-
getReserved
public byte getReserved()
- Returns:
- reserved
-
getLlcSupervisoryFunction
public LlcControlSupervisoryFunction getLlcSupervisoryFunction()
- Returns:
- supervisoryFunction
-
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 LlcControlSupervisory.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
-
-