net.floodlightcontroller.packet
Class LLC

java.lang.Object
  extended by net.floodlightcontroller.packet.BasePacket
      extended by 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

Field Summary
 
Fields inherited from class net.floodlightcontroller.packet.BasePacket
log, parent, payload
 
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 net.floodlightcontroller.packet.BasePacket
clone, equals, getParent, getPayload, hashCode, resetChecksum, setParent, setPayload
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LLC

public LLC()
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

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 from
length - length of the data to deserialize
Returns:
the deserialized data