Enum IPProtocols
- java.lang.Object
-
- java.lang.Enum<IPProtocols>
-
- org.opendaylight.genius.mdsalutil.packet.IPProtocols
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<IPProtocols>
public enum IPProtocols extends java.lang.Enum<IPProtocols>
Enum represents the most common IP protocols numbers It provides the binding between IP protocol names and numbers and provides APIs to read and parse them in either of the two forms.NOTE: Openflow 1.0 supports the IP Proto match only for ICMP, TCP and UDP.
references: http://www.iana.org/assignments/protocol-numbers/protocol-numbers.xhtml
-
-
Enum Constant Summary
Enum Constants Enum Constant Description AH
AN
ANY
ANY0HOP
ANYDISTFS
ANYENC
ANYHOST
ANYNETWORK
ARGUS
ARIS
AX25
BBNRCCMON
BNA
BRSATMON
CBT
CFTP
CHAOS
COMPAQPEER
CPHB
CPNX
CRTP
CRUDP
DCCP
DCNMEAS
DDP
DDX
DGP
DSR
EGP
EIGRP
EMCON
ENCAP
ESP
ETHERIP
EXP1
EXP2
FC
FIRE
GGP
GMTP
GRE
HIP
HMP
HOPOPT
IATP
ICMP
IDPR
IDPRCMTP
IDRP
IFMP
IGMP
IGP
IL
INLSP
IPComp
IPCV
IPIP
IPLT
IPPC
IPTM
IPV4
IPV6
IPV6Frag
IPV6ICMP
IPV6NoNxt
IPV6Opts
IPV6Route
IPXINIP
IRTP
ISIS
ISOIP
ISOTP4
KRYPTOLAN
L2TP
LARP
LEAF1
LEAF2
MANET
MERITINP
MFENSP
MICP
MOBILE
MOBILITYHEADER
MPLSINIP
MTP
MUX
NARP
NETBLT
NSFNETIGP
NVPII
OSPFIGP
PGM
PIM
PIPE
PNNI
PRM
PTP
PUP
PVP
QNX
RDP
RESERVED
ROHC
RSVP
RSVPE2EIGNORE
RVD
SATEXPAK
SATMON
SCCSP
SCPS
SCTP
SDRP
SECUREVMTP
SHIM6
SKIP
SM
SMP
SNP
SPRITERPC
SPS
SRP
SSCOPMCE
ST
STP
SUNND
SWIPE
TCF
TCP
THREEPC
TLSP
TPPLUSPLUS
TRUNK1
TRUNK2
TTP
UDP
UDPLITE
UTI
VINES
VISA
VMTP
VRRP
WBEXPAK
WBMON
WESP
WSN
XNET
XNSIDP
XTP
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description byte
byteValue()
static IPProtocols
fromString(java.lang.String string)
Method to parse an IPProtocol from a numeric string.static java.lang.String
getProtocolName(byte number)
static java.lang.String
getProtocolName(int number)
static java.lang.String
getProtocolName(short number)
static java.util.List<java.lang.String>
getProtocolNameList()
static byte
getProtocolNumberByte(java.lang.String name)
static int
getProtocolNumberInt(java.lang.String name)
static short
getProtocolNumberShort(java.lang.String name)
int
intValue()
short
shortValue()
java.lang.String
toString()
static IPProtocols
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static IPProtocols[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ANY
public static final IPProtocols ANY
-
HOPOPT
public static final IPProtocols HOPOPT
-
ICMP
public static final IPProtocols ICMP
-
IGMP
public static final IPProtocols IGMP
-
GGP
public static final IPProtocols GGP
-
IPV4
public static final IPProtocols IPV4
-
ST
public static final IPProtocols ST
-
TCP
public static final IPProtocols TCP
-
CBT
public static final IPProtocols CBT
-
EGP
public static final IPProtocols EGP
-
IGP
public static final IPProtocols IGP
-
BBNRCCMON
public static final IPProtocols BBNRCCMON
-
NVPII
public static final IPProtocols NVPII
-
PUP
public static final IPProtocols PUP
-
ARGUS
public static final IPProtocols ARGUS
-
EMCON
public static final IPProtocols EMCON
-
XNET
public static final IPProtocols XNET
-
CHAOS
public static final IPProtocols CHAOS
-
UDP
public static final IPProtocols UDP
-
MUX
public static final IPProtocols MUX
-
DCNMEAS
public static final IPProtocols DCNMEAS
-
HMP
public static final IPProtocols HMP
-
PRM
public static final IPProtocols PRM
-
XNSIDP
public static final IPProtocols XNSIDP
-
TRUNK1
public static final IPProtocols TRUNK1
-
TRUNK2
public static final IPProtocols TRUNK2
-
LEAF1
public static final IPProtocols LEAF1
-
LEAF2
public static final IPProtocols LEAF2
-
RDP
public static final IPProtocols RDP
-
IRTP
public static final IPProtocols IRTP
-
ISOTP4
public static final IPProtocols ISOTP4
-
NETBLT
public static final IPProtocols NETBLT
-
MFENSP
public static final IPProtocols MFENSP
-
MERITINP
public static final IPProtocols MERITINP
-
DCCP
public static final IPProtocols DCCP
-
THREEPC
public static final IPProtocols THREEPC
-
IDPR
public static final IPProtocols IDPR
-
XTP
public static final IPProtocols XTP
-
DDP
public static final IPProtocols DDP
-
IDPRCMTP
public static final IPProtocols IDPRCMTP
-
TPPLUSPLUS
public static final IPProtocols TPPLUSPLUS
-
IL
public static final IPProtocols IL
-
IPV6
public static final IPProtocols IPV6
-
SDRP
public static final IPProtocols SDRP
-
IPV6Route
public static final IPProtocols IPV6Route
-
IPV6Frag
public static final IPProtocols IPV6Frag
-
IDRP
public static final IPProtocols IDRP
-
RSVP
public static final IPProtocols RSVP
-
GRE
public static final IPProtocols GRE
-
DSR
public static final IPProtocols DSR
-
BNA
public static final IPProtocols BNA
-
ESP
public static final IPProtocols ESP
-
AH
public static final IPProtocols AH
-
INLSP
public static final IPProtocols INLSP
-
SWIPE
public static final IPProtocols SWIPE
-
NARP
public static final IPProtocols NARP
-
MOBILE
public static final IPProtocols MOBILE
-
TLSP
public static final IPProtocols TLSP
-
SKIP
public static final IPProtocols SKIP
-
IPV6ICMP
public static final IPProtocols IPV6ICMP
-
IPV6NoNxt
public static final IPProtocols IPV6NoNxt
-
IPV6Opts
public static final IPProtocols IPV6Opts
-
ANYHOST
public static final IPProtocols ANYHOST
-
CFTP
public static final IPProtocols CFTP
-
ANYNETWORK
public static final IPProtocols ANYNETWORK
-
SATEXPAK
public static final IPProtocols SATEXPAK
-
KRYPTOLAN
public static final IPProtocols KRYPTOLAN
-
RVD
public static final IPProtocols RVD
-
IPPC
public static final IPProtocols IPPC
-
ANYDISTFS
public static final IPProtocols ANYDISTFS
-
SATMON
public static final IPProtocols SATMON
-
VISA
public static final IPProtocols VISA
-
IPCV
public static final IPProtocols IPCV
-
CPNX
public static final IPProtocols CPNX
-
CPHB
public static final IPProtocols CPHB
-
WSN
public static final IPProtocols WSN
-
PVP
public static final IPProtocols PVP
-
BRSATMON
public static final IPProtocols BRSATMON
-
SUNND
public static final IPProtocols SUNND
-
WBMON
public static final IPProtocols WBMON
-
WBEXPAK
public static final IPProtocols WBEXPAK
-
ISOIP
public static final IPProtocols ISOIP
-
VMTP
public static final IPProtocols VMTP
-
SECUREVMTP
public static final IPProtocols SECUREVMTP
-
VINES
public static final IPProtocols VINES
-
TTP
public static final IPProtocols TTP
-
IPTM
public static final IPProtocols IPTM
-
NSFNETIGP
public static final IPProtocols NSFNETIGP
-
DGP
public static final IPProtocols DGP
-
TCF
public static final IPProtocols TCF
-
EIGRP
public static final IPProtocols EIGRP
-
OSPFIGP
public static final IPProtocols OSPFIGP
-
SPRITERPC
public static final IPProtocols SPRITERPC
-
LARP
public static final IPProtocols LARP
-
MTP
public static final IPProtocols MTP
-
AX25
public static final IPProtocols AX25
-
IPIP
public static final IPProtocols IPIP
-
MICP
public static final IPProtocols MICP
-
SCCSP
public static final IPProtocols SCCSP
-
ETHERIP
public static final IPProtocols ETHERIP
-
ENCAP
public static final IPProtocols ENCAP
-
ANYENC
public static final IPProtocols ANYENC
-
GMTP
public static final IPProtocols GMTP
-
IFMP
public static final IPProtocols IFMP
-
PNNI
public static final IPProtocols PNNI
-
PIM
public static final IPProtocols PIM
-
ARIS
public static final IPProtocols ARIS
-
SCPS
public static final IPProtocols SCPS
-
QNX
public static final IPProtocols QNX
-
AN
public static final IPProtocols AN
-
IPComp
public static final IPProtocols IPComp
-
SNP
public static final IPProtocols SNP
-
COMPAQPEER
public static final IPProtocols COMPAQPEER
-
IPXINIP
public static final IPProtocols IPXINIP
-
VRRP
public static final IPProtocols VRRP
-
PGM
public static final IPProtocols PGM
-
ANY0HOP
public static final IPProtocols ANY0HOP
-
L2TP
public static final IPProtocols L2TP
-
DDX
public static final IPProtocols DDX
-
IATP
public static final IPProtocols IATP
-
STP
public static final IPProtocols STP
-
SRP
public static final IPProtocols SRP
-
UTI
public static final IPProtocols UTI
-
SMP
public static final IPProtocols SMP
-
SM
public static final IPProtocols SM
-
PTP
public static final IPProtocols PTP
-
ISIS
public static final IPProtocols ISIS
-
FIRE
public static final IPProtocols FIRE
-
CRTP
public static final IPProtocols CRTP
-
CRUDP
public static final IPProtocols CRUDP
-
SSCOPMCE
public static final IPProtocols SSCOPMCE
-
IPLT
public static final IPProtocols IPLT
-
SPS
public static final IPProtocols SPS
-
PIPE
public static final IPProtocols PIPE
-
SCTP
public static final IPProtocols SCTP
-
FC
public static final IPProtocols FC
-
RSVPE2EIGNORE
public static final IPProtocols RSVPE2EIGNORE
-
MOBILITYHEADER
public static final IPProtocols MOBILITYHEADER
-
UDPLITE
public static final IPProtocols UDPLITE
-
MPLSINIP
public static final IPProtocols MPLSINIP
-
MANET
public static final IPProtocols MANET
-
HIP
public static final IPProtocols HIP
-
SHIM6
public static final IPProtocols SHIM6
-
WESP
public static final IPProtocols WESP
-
ROHC
public static final IPProtocols ROHC
-
EXP1
public static final IPProtocols EXP1
-
EXP2
public static final IPProtocols EXP2
-
RESERVED
public static final IPProtocols RESERVED
-
-
Method Detail
-
values
public static IPProtocols[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (IPProtocols c : IPProtocols.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static IPProtocols valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
intValue
public int intValue()
-
shortValue
public short shortValue()
-
byteValue
public byte byteValue()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Enum<IPProtocols>
-
getProtocolName
public static java.lang.String getProtocolName(int number)
-
getProtocolName
public static java.lang.String getProtocolName(short number)
-
getProtocolName
public static java.lang.String getProtocolName(byte number)
-
getProtocolNumberShort
public static short getProtocolNumberShort(java.lang.String name)
-
getProtocolNumberInt
public static int getProtocolNumberInt(java.lang.String name)
-
getProtocolNumberByte
public static byte getProtocolNumberByte(java.lang.String name)
-
getProtocolNameList
public static java.util.List<java.lang.String> getProtocolNameList()
-
fromString
public static IPProtocols fromString(java.lang.String string)
Method to parse an IPProtocol from a numeric string.- Parameters:
string
- The IP protocol string to be parsed- Returns:
- The IP protocol Enum, or null if invalid protocol string is passed
-
-