public class OFActionOutput extends OFAction implements Cloneable
Modifier and Type | Field and Description |
---|---|
protected short |
maxLength |
static int |
MINIMUM_LENGTH |
protected short |
port |
length, OFFSET_LENGTH, OFFSET_TYPE, type
Constructor and Description |
---|
OFActionOutput() |
OFActionOutput(short port)
Create an Output Action sending packets out the specified OpenFlow port.
|
OFActionOutput(short port,
short maxLength)
Create an Output Action specifying both the port AND the snaplen of the
packet to send out that port.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
short |
getMaxLength()
Get the max length to send to the controller
|
short |
getPort()
Get the output port
|
int |
hashCode() |
void |
readFrom(org.jboss.netty.buffer.ChannelBuffer data) |
OFActionOutput |
setMaxLength(short maxLength)
Set the max length to send to the controller
|
OFActionOutput |
setPort(short port)
Set the output port
|
String |
toString()
Returns a summary of the message
|
void |
writeTo(org.jboss.netty.buffer.ChannelBuffer data) |
clone, fromString, getLength, getLengthU, getType, setLength, setType
public static int MINIMUM_LENGTH
protected short port
protected short maxLength
public OFActionOutput()
public OFActionOutput(short port)
port
- public OFActionOutput(short port, short maxLength)
port
- maxLength
- The maximum number of bytes of the packet to send. Most
hardware only supports this value for OFPP_CONTROLLERpublic short getPort()
public OFActionOutput setPort(short port)
port
- public short getMaxLength()
public OFActionOutput setMaxLength(short maxLength)
maxLength
- public void readFrom(org.jboss.netty.buffer.ChannelBuffer data)
public void writeTo(org.jboss.netty.buffer.ChannelBuffer data)
Copyright © 2015. All rights reserved.