public enum IPv6ExtHdr extends Enum<IPv6ExtHdr> implements OfpBitmapEnum
OxmBasicFieldType.IPV6_EXTHDR
.
Since 1.3.
Enum Constant and Description |
---|
AUTH
Authentication header present; Since 1.3.
|
DEST
One or two Destination options headers present; Since 1.3.
|
ESP
Encrypted Security Payload header present; Since 1.3.
|
FRAG
Fragmentation header present; Since 1.3.
|
HOP
Hop-by-Hop header present; Since 1.3.
|
NO_NEXT
No Next Header header present; Since 1.3.
|
ROUTER
Router header present; Since 1.3.
|
UN_REP
Unexpected repeats encountered; Since 1.3.
|
UN_SEQ
Unexpected sequencing encountered; Since 1.3.
|
Modifier and Type | Method and Description |
---|---|
static int |
encodeBitmap(Set<IPv6ExtHdr> flags,
ProtocolVersion pv)
Encodes a set of IPv6 Extension Header flags as a bitmap.
|
int |
getBit(ProtocolVersion pv)
Returns the bit value for the constant, under the given protocol
version.
|
String |
toDisplayString()
Returns a string representation of the constant, suitable for
presentation in a display.
|
String |
toString() |
static IPv6ExtHdr |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static IPv6ExtHdr[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final IPv6ExtHdr NO_NEXT
public static final IPv6ExtHdr ESP
public static final IPv6ExtHdr AUTH
public static final IPv6ExtHdr DEST
public static final IPv6ExtHdr FRAG
public static final IPv6ExtHdr ROUTER
public static final IPv6ExtHdr HOP
public static final IPv6ExtHdr UN_REP
public static final IPv6ExtHdr UN_SEQ
public static IPv6ExtHdr[] values()
for (IPv6ExtHdr c : IPv6ExtHdr.values()) System.out.println(c);
public static IPv6ExtHdr valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic int getBit(ProtocolVersion pv)
OfpBitmapEnum
getBit
in interface OfpBitmapEnum
pv
- the protocol versionpublic String toString()
toString
in class Enum<IPv6ExtHdr>
public String toDisplayString()
OfpBitmapEnum
toDisplayString
in interface OfpBitmapEnum
public static int encodeBitmap(Set<IPv6ExtHdr> flags, ProtocolVersion pv)
flags
parameter may be null, in which case a bitmask
of 0 (zero) is returned.flags
- the flags to encodepv
- the protocol versionNullPointerException
- if protocol version is nullVersionMismatchException
- if version is earlier than 1.3Copyright © 2015. All Rights Reserved.