public class OFVlanVidMatch extends Object implements OFValueType<OFVlanVidMatch>
| Modifier and Type | Field and Description |
|---|---|
static OFVlanVidMatch |
FULL_MASK |
static OFVlanVidMatch |
NO_MASK
for use with masking operations
|
static OFVlanVidMatch |
NONE
this value means 'not set' in OF1.0 (e.g., in a match).
|
static OFVlanVidMatch |
PRESENT
presence of a VLAN tag is indicated by the presence of bit 0x1000
|
static OFVlanVidMatch |
UNTAGGED
an untagged packet is specified as 0000 in OF 1.0, but 0xFFFF in OF1.0.
|
| Modifier and Type | Method and Description |
|---|---|
OFVlanVidMatch |
applyMask(OFVlanVidMatch mask) |
int |
compareTo(OFVlanVidMatch o) |
boolean |
equals(Object obj) |
byte[] |
getBytes() |
int |
getLength() |
short |
getRawVid() |
short |
getVlan() |
VlanVid |
getVlanVid() |
int |
hashCode() |
boolean |
isPresentBitSet() |
static OFVlanVidMatch |
ofRawVid(short vid) |
static OFVlanVidMatch |
ofVlan(int vlan) |
static OFVlanVidMatch |
ofVlanOF10(short of10vlan) |
static OFVlanVidMatch |
ofVlanVid(VlanVid vid) |
void |
putTo(com.google.common.hash.PrimitiveSink sink)
Dump the state of this object into a
PrimitiveSink (e.g., a Hasher) for the purpose
of computing a strong hash. |
static OFVlanVidMatch |
read2Bytes(io.netty.buffer.ByteBuf c) |
static OFVlanVidMatch |
read2BytesOF10(io.netty.buffer.ByteBuf c) |
String |
toString() |
void |
write2Bytes(io.netty.buffer.ByteBuf c) |
void |
write2BytesOF10(io.netty.buffer.ByteBuf c) |
public static final OFVlanVidMatch PRESENT
public static final OFVlanVidMatch NONE
public static final OFVlanVidMatch NO_MASK
public static final OFVlanVidMatch FULL_MASK
public static final OFVlanVidMatch UNTAGGED
public static OFVlanVidMatch ofRawVid(short vid)
public static OFVlanVidMatch ofVlanVid(VlanVid vid)
public static OFVlanVidMatch ofVlan(int vlan)
public static OFVlanVidMatch ofVlanOF10(short of10vlan)
public boolean isPresentBitSet()
public short getVlan()
@Nullable public VlanVid getVlanVid()
public short getRawVid()
public int getLength()
getLength in interface OFValueType<OFVlanVidMatch>public byte[] getBytes()
public void write2Bytes(io.netty.buffer.ByteBuf c)
public void write2BytesOF10(io.netty.buffer.ByteBuf c)
public static OFVlanVidMatch read2Bytes(io.netty.buffer.ByteBuf c) throws OFParseError
OFParseErrorpublic static OFVlanVidMatch read2BytesOF10(io.netty.buffer.ByteBuf c) throws OFParseError
OFParseErrorpublic OFVlanVidMatch applyMask(OFVlanVidMatch mask)
applyMask in interface OFValueType<OFVlanVidMatch>public int compareTo(OFVlanVidMatch o)
compareTo in interface Comparable<OFVlanVidMatch>public void putTo(com.google.common.hash.PrimitiveSink sink)
PrimitiveSinkablePrimitiveSink (e.g., a Hasher) for the purpose
of computing a strong hash.
Equality contract:
Equal objects must dump the equal data into the sink, non-equal objects must dump different
data into the sink. Please see the interface documentation of PrimitiveSink for more
details and caveats/traps.putTo in interface PrimitiveSinkablesink - the sink to dump the object state into.Copyright © 2020. All rights reserved.