Package org.onlab.packet
Class LLC
- java.lang.Object
-
- org.onlab.packet.BasePacket
-
- org.onlab.packet.LLC
-
- All Implemented Interfaces:
IPacket
public class LLC extends BasePacket
This class represents an Link Local Control header that is used in Ethernet 802.3.
-
-
Field Summary
Fields Modifier and Type Field Description static byte
LLC_HEADER_LENGTH
-
Fields inherited from class org.onlab.packet.BasePacket
parent, payload
-
-
Constructor Summary
Constructors Constructor Description LLC()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Deserializer<LLC>
deserializer()
Deserializer function for LLC packets.byte
getCtrl()
byte
getDsap()
byte
getSsap()
byte[]
serialize()
Sets all payloads parent packet if applicable, then serializes this packet and all payloads.void
setCtrl(byte ctrl)
void
setDsap(byte dsap)
void
setSsap(byte ssap)
String
toString()
-
Methods inherited from class org.onlab.packet.BasePacket
clone, equals, getParent, getPayload, hashCode, resetChecksum, setParent, setPayload
-
-
-
-
Field Detail
-
LLC_HEADER_LENGTH
public static final byte LLC_HEADER_LENGTH
- See Also:
- Constant Field Values
-
-
Method Detail
-
getDsap
public byte getDsap()
-
setDsap
public void setDsap(byte dsap)
-
getSsap
public byte getSsap()
-
setSsap
public void setSsap(byte ssap)
-
getCtrl
public byte getCtrl()
-
setCtrl
public void setCtrl(byte ctrl)
-
serialize
public byte[] serialize()
Description copied from interface:IPacket
Sets all payloads parent packet if applicable, then serializes this packet and all payloads.- Returns:
- a byte[] containing this packet and payloads
-
deserializer
public static Deserializer<LLC> deserializer()
Deserializer function for LLC packets.- Returns:
- deserializer function
-
-