public class OFPort extends Object implements OFValueType<OFPort>
Modifier and Type | Field and Description |
---|---|
static OFPort |
ALL
All physical ports except input port
|
static OFPort |
ANY
Wildcard port used only for flow mod (delete) and flow stats requests.
|
static OFPort |
CONTROLLER
Send to controller
|
static OFPort |
FLOOD
All physical ports in VLAN, except input port and those blocked or link
down
|
static OFPort |
FULL_MASK |
static OFPort |
IN_PORT
Send the packet out the input port.
|
static OFPort |
LOCAL
local openflow "port"
|
static OFPort |
MAX
Maximum number of physical and logical switch ports.
|
static OFPort |
NO_MASK |
static OFPort |
NORMAL
Process with normal L2/L3 switching.
|
static OFPort |
TABLE
Submit the packet to the first flow table NB: This destination port can
only be used in packet-out messages.
|
static OFPort |
ZERO
the wildcarded default for OpenFlow 1.0 (value: 0).
|
Modifier and Type | Method and Description |
---|---|
OFPort |
applyMask(OFPort mask) |
int |
compareTo(OFPort o) |
boolean |
equals(Object obj) |
int |
getLength() |
int |
getPortNumber()
return the port number as a int32
|
short |
getShortPortNumber()
return the port number as int16.
|
int |
hashCode() |
static OFPort |
of(int portNumber)
convenience function: delegates to ofInt
|
static OFPort |
ofInt(int portNumber)
get an OFPort object corresponding to a raw 32-bit integer port number.
|
static OFPort |
ofShort(short portNumber)
get an OFPort object corresponding to a raw signed 16-bit integer port
number (OF1.0).
|
void |
putTo(com.google.common.hash.PrimitiveSink sink) |
static OFPort |
read2Bytes(io.netty.buffer.ByteBuf c) |
static OFPort |
read4Bytes(io.netty.buffer.ByteBuf c) |
String |
toString() |
void |
write2Bytes(io.netty.buffer.ByteBuf c) |
void |
write4Bytes(io.netty.buffer.ByteBuf c) |
public static final OFPort MAX
public static final OFPort IN_PORT
public static final OFPort TABLE
public static final OFPort NORMAL
public static final OFPort FLOOD
public static final OFPort ALL
public static final OFPort CONTROLLER
public static final OFPort LOCAL
public static final OFPort ANY
public static final OFPort ZERO
public static final OFPort NO_MASK
public static final OFPort FULL_MASK
public static OFPort ofInt(int portNumber)
portNumber
- public static OFPort of(int portNumber)
public static OFPort ofShort(short portNumber)
portNumber
- public int getPortNumber()
public short getShortPortNumber()
IllegalArgumentException
- if a regular port number exceeds the maximum value in OF1.0public int getLength()
getLength
in interface OFValueType<OFPort>
public void write2Bytes(io.netty.buffer.ByteBuf c)
public static OFPort read2Bytes(io.netty.buffer.ByteBuf c) throws OFParseError
OFParseError
public void write4Bytes(io.netty.buffer.ByteBuf c)
public static OFPort read4Bytes(io.netty.buffer.ByteBuf c) throws OFParseError
OFParseError
public OFPort applyMask(OFPort mask)
applyMask
in interface OFValueType<OFPort>
public int compareTo(OFPort o)
compareTo
in interface Comparable<OFPort>
public void putTo(com.google.common.hash.PrimitiveSink sink)
putTo
in interface PrimitiveSinkable
Copyright © 2015. All rights reserved.