- All Implemented Interfaces:
Serializable
,Comparable<Protocol>
From http://www.iana.org/assignments/protocol-numbers
on 2017-03-18, with source citing "Last Updated 2016-06-22".
- Author:
- AO Industries, Inc.
-
Enum Constant Summary
Enum ConstantDescription -
Method Summary
Modifier and TypeMethodDescriptionshort
The 8-bit protocol number.static Protocol
getProtocolByKeyword
(String keyword) Gets a protocol given its keyword (or name if doesn't have a keyword), case-insensitive inLocale.ROOT
.boolean
toString()
static Protocol
valueOf
(short decimal) Gets aProtocol
given its decimal representation.static Protocol
Returns the enum constant of this type with the specified name.static Protocol[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
HOPOPT
-
ICMP
-
IGMP
-
GGP
-
IPV4
-
ST
-
TCP
-
CBT
-
EGP
-
IGP
-
BBN_RCC_MON
-
NVP_II
-
PUP
-
ARGUS
-
EMCON
-
XNET
-
CHAOS
-
UDP
-
MUX
-
DCN_MEAS
-
HMP
-
PRM
-
XNS_IDP
-
TRUNK_1
-
TRUNK_2
-
LEAF_1
-
LEAF_2
-
RDP
-
IRTP
-
ISO_TP4
-
NETBLT
-
MFE_NSP
-
MERIT_INP
-
DCCP
-
_3PC
-
IDPR
-
XTP
-
DDP
-
IDPR_CMTP
-
TP__
-
IL
-
IPV6
-
SDRP
-
IPV6_ROUTE
-
IPV6_FRAG
-
IDRP
-
RSVP
-
GRE
-
DSR
-
BNA
-
ESP
-
AH
-
I_NLSP
-
SWIPE
-
NARP
-
MOBILE
-
TLSP
-
SKIP
-
IPV6_ICMP
-
IPV6_NONXT
-
IPV6_OPTS
-
ANY_HOST_INTERNAL
-
CFTP
-
ANY_LOCAL_NETWORK
-
SAT_EXPAK
-
KRYPTOLAN
-
RVD
-
IPPC
-
ANY_DISTRIBUTED_FILE_SYSTEM
-
SAT_MON
-
VISA
-
IPCV
-
CPNX
-
CPHB
-
WSN
-
PVP
-
BR_SAT_MON
-
SUN_ND
-
WB_MON
-
WB_EXPAK
-
ISO_IP
-
VMTP
-
SECURE_VMTP
-
VINES
-
TTP
-
IPTM
-
NSFNET_IGP
-
DGP
-
TCF
-
EIGRP
-
OSPFIGP
-
SPRITE_RPC
-
LARP
-
MTP
-
AX_25
-
IPIP
-
MICP
-
SCC_SP
-
ETHERIP
-
ENCAP
-
ANY_PRIVATE_ENCRYPTION
-
GMTP
-
IFMP
-
PNNI
-
PIM
-
ARIS
-
SCPS
-
QNX
-
A_N
-
IPCOMP
-
SNP
-
COMPAQ_PEER
-
IPX_IN_IP
-
VRRP
-
PGM
-
ANY_0_HOP
-
L2TP
-
DDX
-
IATP
-
STP
-
SRP
-
UTI
-
SMP
-
SM
-
PTP
-
ISIS_OVER_IPV4
-
FIRE
-
CRTP
-
CRUDP
-
SSCOPMCE
-
IPLT
-
SPS
-
PIPE
-
SCTP
-
FC
-
RSVP_E2E_IGNORE
-
MOBILITY_HEADER
-
UDPLITE
-
MPLS_IN_IP
-
MANET
-
HIP
-
SHIM6
-
WESP
-
ROHC
-
UNASSIGNED
-
EXPERIMENTATION_AND_TESTING_1
-
EXPERIMENTATION_AND_TESTING_2
-
RESERVED
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
valueOf
Gets aProtocol
given its decimal representation.For the duplicated decimal
84
shared by bothTTP
andIPTM
, returnsIPTM
.Returns
UNASSIGNED
for any unassigned decimal.- Throws:
IllegalArgumentException
- when decimal is not between 0 and 255.
-
getProtocolByKeyword
Gets a protocol given its keyword (or name if doesn't have a keyword), case-insensitive inLocale.ROOT
.- Returns:
- the protocol or
null
if not found - Throws:
IllegalArgumentException
- See Also:
-
toString
-
getDecimal
public short getDecimal()The 8-bit protocol number. Protocol 84 has two different listings, both TTP and IPTM. This value cannot be assumed to match the enumEnum.ordinal()
.UNASSIGNED
is used for all unassigned decimal values and is represented by-1
.- Returns:
- The 8-bit protocol number or
-1
forUNASSIGNED
.
-
getKeyword
- Returns:
- The keyword or
""
when no keyword in table - See Also:
-
getProtocol
- Returns:
- The protocol description or
""
when no protocol in table
-
isIpv6ExtensionHeader
public boolean isIpv6ExtensionHeader()- Returns:
- The IPv6 Extension Header flag.
-