java.lang.Object
org.pcap4j.packet.LlcControlSupervisory
- All Implemented Interfaces:
Serializable,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:
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final booleanprivate final byteprivate final byteprivate static final longprivate final LlcControlSupervisoryFunction -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleangetPfBit()byte[]byteintbyteinthashCode()intlength()static LlcControlSupervisorynewInstance(short value) toString()
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
receiveSequenceNumber
private final byte receiveSequenceNumber -
pfBit
private final boolean pfBit -
reserved
private final byte reserved -
supervisoryFunction
-
-
Constructor Details
-
LlcControlSupervisory
- Throws:
IllegalRawDataException
-
LlcControlSupervisory
-
-
Method Details
-
newInstance
- 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
- 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
- Returns:
- a new Builder object populated with this object's fields.
-
toString
-
hashCode
public int hashCode() -
equals
-