public class PacketType extends Object implements OFValueType<PacketType>
Modifier and Type | Field and Description |
---|---|
static PacketType |
ETHERNET |
static PacketType |
EXPERIMENTER |
static PacketType |
FULL_MASK |
static PacketType |
IPV4 |
static PacketType |
IPV6 |
static PacketType |
NO_MASK |
static PacketType |
NO_PACKET |
Modifier and Type | Method and Description |
---|---|
PacketType |
applyMask(PacketType mask) |
int |
compareTo(PacketType o) |
boolean |
equals(Object obj) |
int |
getLength() |
int |
getNamespace() |
int |
getNsType() |
int |
hashCode() |
static PacketType |
of(int namespace,
int nsType) |
static PacketType |
of(OFHeaderTypeNamespace namespace,
int nsType) |
void |
putTo(com.google.common.hash.PrimitiveSink sink) |
static PacketType |
read4Bytes(io.netty.buffer.ByteBuf c) |
String |
toString() |
void |
write4Bytes(io.netty.buffer.ByteBuf c) |
public static final PacketType ETHERNET
public static final PacketType NO_PACKET
public static final PacketType EXPERIMENTER
public static final PacketType IPV4
public static final PacketType IPV6
public static final PacketType NO_MASK
public static final PacketType FULL_MASK
public static PacketType of(int namespace, int nsType)
public static PacketType of(OFHeaderTypeNamespace namespace, int nsType)
public PacketType applyMask(PacketType mask)
applyMask
in interface OFValueType<PacketType>
public int compareTo(PacketType o)
compareTo
in interface Comparable<PacketType>
public void putTo(com.google.common.hash.PrimitiveSink sink)
putTo
in interface PrimitiveSinkable
public int getLength()
getLength
in interface OFValueType<PacketType>
public void write4Bytes(io.netty.buffer.ByteBuf c)
public static PacketType read4Bytes(io.netty.buffer.ByteBuf c)
public int getNamespace()
public int getNsType()
Copyright © 2016. All rights reserved.