net.floodlightcontroller.packet
Class LLC
java.lang.Object
net.floodlightcontroller.packet.BasePacket
net.floodlightcontroller.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.
- Author:
- alexreimers
Constructor Summary |
LLC()
|
Method Summary |
IPacket |
deserialize(byte[] data,
int offset,
int length)
Deserializes this packet layer and all possible payloads |
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)
|
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
LLC
public LLC()
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
deserialize
public IPacket deserialize(byte[] data,
int offset,
int length)
- Description copied from interface:
IPacket
- Deserializes this packet layer and all possible payloads
offset
- offset to start deserializing fromlength
- length of the data to deserialize
- Returns:
- the deserialized data