com.bigswitch.floodlight.vendor
Class OFMirrorSetVendorData

java.lang.Object
  extended by com.bigswitch.floodlight.vendor.OFBigSwitchVendorData
      extended by com.bigswitch.floodlight.vendor.OFMirrorSetVendorData
All Implemented Interfaces:
OFVendorData

public class OFMirrorSetVendorData
extends OFBigSwitchVendorData


Field Summary
static int BSN_SET_MIRRORING
          Opcode/dataType to set mirroring
protected  byte pad1
           
protected  byte pad2
           
protected  byte pad3
           
protected  byte reportMirrorPorts
           
 
Fields inherited from class com.bigswitch.floodlight.vendor.OFBigSwitchVendorData
BSN_VENDOR_ID, dataType
 
Constructor Summary
OFMirrorSetVendorData()
           
 
Method Summary
 int getLength()
          Get the length of the vendor data.
 byte getReportMirrorPorts()
           
 void readFrom(java.nio.ByteBuffer data, int length)
          Read the vendor data from the channel buffer
 void setReportMirrorPorts(byte report)
           
 void writeTo(java.nio.ByteBuffer data)
          Write the vendor data to the channel buffer
 
Methods inherited from class com.bigswitch.floodlight.vendor.OFBigSwitchVendorData
equals, getDataType, hashCode, setDataType
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BSN_SET_MIRRORING

public static final int BSN_SET_MIRRORING
Opcode/dataType to set mirroring

See Also:
Constant Field Values

reportMirrorPorts

protected byte reportMirrorPorts

pad1

protected byte pad1

pad2

protected byte pad2

pad3

protected byte pad3
Constructor Detail

OFMirrorSetVendorData

public OFMirrorSetVendorData()
Method Detail

getReportMirrorPorts

public byte getReportMirrorPorts()

setReportMirrorPorts

public void setReportMirrorPorts(byte report)

getLength

public int getLength()
Description copied from class: OFBigSwitchVendorData
Get the length of the vendor data. This implementation will normally be the superclass for another class that will override this to return the overall vendor data length. This implementation just returns the length of the part that includes the 4-byte integer data type value at the beginning of the vendor data

Specified by:
getLength in interface OFVendorData
Overrides:
getLength in class OFBigSwitchVendorData
Returns:
the total length vendor date

readFrom

public void readFrom(java.nio.ByteBuffer data,
                     int length)
Read the vendor data from the channel buffer

Specified by:
readFrom in interface OFVendorData
Overrides:
readFrom in class OFBigSwitchVendorData
Parameters:
data: - the channel buffer from which we are deserializing
length: - the length to the end of the enclosing message

writeTo

public void writeTo(java.nio.ByteBuffer data)
Write the vendor data to the channel buffer

Specified by:
writeTo in interface OFVendorData
Overrides:
writeTo in class OFBigSwitchVendorData
Parameters:
data - the channel buffer to which we're serializing