Enum Protocol

java.lang.Object
java.lang.Enum<Protocol>
com.aoapps.net.Protocol
All Implemented Interfaces:
Serializable, Comparable<Protocol>

public enum Protocol extends Enum<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 Details

    • HOPOPT

      public static final Protocol HOPOPT
    • ICMP

      public static final Protocol ICMP
    • IGMP

      public static final Protocol IGMP
    • GGP

      public static final Protocol GGP
    • IPV4

      public static final Protocol IPV4
    • ST

      public static final Protocol ST
    • TCP

      public static final Protocol TCP
    • CBT

      public static final Protocol CBT
    • EGP

      public static final Protocol EGP
    • IGP

      public static final Protocol IGP
    • BBN_RCC_MON

      public static final Protocol BBN_RCC_MON
    • NVP_II

      public static final Protocol NVP_II
    • PUP

      public static final Protocol PUP
    • ARGUS

      public static final Protocol ARGUS
    • EMCON

      public static final Protocol EMCON
    • XNET

      public static final Protocol XNET
    • CHAOS

      public static final Protocol CHAOS
    • UDP

      public static final Protocol UDP
    • MUX

      public static final Protocol MUX
    • DCN_MEAS

      public static final Protocol DCN_MEAS
    • HMP

      public static final Protocol HMP
    • PRM

      public static final Protocol PRM
    • XNS_IDP

      public static final Protocol XNS_IDP
    • TRUNK_1

      public static final Protocol TRUNK_1
    • TRUNK_2

      public static final Protocol TRUNK_2
    • LEAF_1

      public static final Protocol LEAF_1
    • LEAF_2

      public static final Protocol LEAF_2
    • RDP

      public static final Protocol RDP
    • IRTP

      public static final Protocol IRTP
    • ISO_TP4

      public static final Protocol ISO_TP4
    • NETBLT

      public static final Protocol NETBLT
    • MFE_NSP

      public static final Protocol MFE_NSP
    • MERIT_INP

      public static final Protocol MERIT_INP
    • DCCP

      public static final Protocol DCCP
    • _3PC

      public static final Protocol _3PC
    • IDPR

      public static final Protocol IDPR
    • XTP

      public static final Protocol XTP
    • DDP

      public static final Protocol DDP
    • IDPR_CMTP

      public static final Protocol IDPR_CMTP
    • TP__

      public static final Protocol TP__
    • IL

      public static final Protocol IL
    • IPV6

      public static final Protocol IPV6
    • SDRP

      public static final Protocol SDRP
    • IPV6_ROUTE

      public static final Protocol IPV6_ROUTE
    • IPV6_FRAG

      public static final Protocol IPV6_FRAG
    • IDRP

      public static final Protocol IDRP
    • RSVP

      public static final Protocol RSVP
    • GRE

      public static final Protocol GRE
    • DSR

      public static final Protocol DSR
    • BNA

      public static final Protocol BNA
    • ESP

      public static final Protocol ESP
    • AH

      public static final Protocol AH
    • I_NLSP

      public static final Protocol I_NLSP
    • SWIPE

      public static final Protocol SWIPE
    • NARP

      public static final Protocol NARP
    • MOBILE

      public static final Protocol MOBILE
    • TLSP

      public static final Protocol TLSP
    • SKIP

      public static final Protocol SKIP
    • IPV6_ICMP

      public static final Protocol IPV6_ICMP
    • IPV6_NONXT

      public static final Protocol IPV6_NONXT
    • IPV6_OPTS

      public static final Protocol IPV6_OPTS
    • ANY_HOST_INTERNAL

      public static final Protocol ANY_HOST_INTERNAL
    • CFTP

      public static final Protocol CFTP
    • ANY_LOCAL_NETWORK

      public static final Protocol ANY_LOCAL_NETWORK
    • SAT_EXPAK

      public static final Protocol SAT_EXPAK
    • KRYPTOLAN

      public static final Protocol KRYPTOLAN
    • RVD

      public static final Protocol RVD
    • IPPC

      public static final Protocol IPPC
    • ANY_DISTRIBUTED_FILE_SYSTEM

      public static final Protocol ANY_DISTRIBUTED_FILE_SYSTEM
    • SAT_MON

      public static final Protocol SAT_MON
    • VISA

      public static final Protocol VISA
    • IPCV

      public static final Protocol IPCV
    • CPNX

      public static final Protocol CPNX
    • CPHB

      public static final Protocol CPHB
    • WSN

      public static final Protocol WSN
    • PVP

      public static final Protocol PVP
    • BR_SAT_MON

      public static final Protocol BR_SAT_MON
    • SUN_ND

      public static final Protocol SUN_ND
    • WB_MON

      public static final Protocol WB_MON
    • WB_EXPAK

      public static final Protocol WB_EXPAK
    • ISO_IP

      public static final Protocol ISO_IP
    • VMTP

      public static final Protocol VMTP
    • SECURE_VMTP

      public static final Protocol SECURE_VMTP
    • VINES

      public static final Protocol VINES
    • TTP

      public static final Protocol TTP
    • IPTM

      public static final Protocol IPTM
    • NSFNET_IGP

      public static final Protocol NSFNET_IGP
    • DGP

      public static final Protocol DGP
    • TCF

      public static final Protocol TCF
    • EIGRP

      public static final Protocol EIGRP
    • OSPFIGP

      public static final Protocol OSPFIGP
    • SPRITE_RPC

      public static final Protocol SPRITE_RPC
    • LARP

      public static final Protocol LARP
    • MTP

      public static final Protocol MTP
    • AX_25

      public static final Protocol AX_25
    • IPIP

      public static final Protocol IPIP
    • MICP

      public static final Protocol MICP
    • SCC_SP

      public static final Protocol SCC_SP
    • ETHERIP

      public static final Protocol ETHERIP
    • ENCAP

      public static final Protocol ENCAP
    • ANY_PRIVATE_ENCRYPTION

      public static final Protocol ANY_PRIVATE_ENCRYPTION
    • GMTP

      public static final Protocol GMTP
    • IFMP

      public static final Protocol IFMP
    • PNNI

      public static final Protocol PNNI
    • PIM

      public static final Protocol PIM
    • ARIS

      public static final Protocol ARIS
    • SCPS

      public static final Protocol SCPS
    • QNX

      public static final Protocol QNX
    • A_N

      public static final Protocol A_N
    • IPCOMP

      public static final Protocol IPCOMP
    • SNP

      public static final Protocol SNP
    • COMPAQ_PEER

      public static final Protocol COMPAQ_PEER
    • IPX_IN_IP

      public static final Protocol IPX_IN_IP
    • VRRP

      public static final Protocol VRRP
    • PGM

      public static final Protocol PGM
    • ANY_0_HOP

      public static final Protocol ANY_0_HOP
    • L2TP

      public static final Protocol L2TP
    • DDX

      public static final Protocol DDX
    • IATP

      public static final Protocol IATP
    • STP

      public static final Protocol STP
    • SRP

      public static final Protocol SRP
    • UTI

      public static final Protocol UTI
    • SMP

      public static final Protocol SMP
    • SM

      public static final Protocol SM
    • PTP

      public static final Protocol PTP
    • ISIS_OVER_IPV4

      public static final Protocol ISIS_OVER_IPV4
    • FIRE

      public static final Protocol FIRE
    • CRTP

      public static final Protocol CRTP
    • CRUDP

      public static final Protocol CRUDP
    • SSCOPMCE

      public static final Protocol SSCOPMCE
    • IPLT

      public static final Protocol IPLT
    • SPS

      public static final Protocol SPS
    • PIPE

      public static final Protocol PIPE
    • SCTP

      public static final Protocol SCTP
    • FC

      public static final Protocol FC
    • RSVP_E2E_IGNORE

      public static final Protocol RSVP_E2E_IGNORE
    • MOBILITY_HEADER

      public static final Protocol MOBILITY_HEADER
    • UDPLITE

      public static final Protocol UDPLITE
    • MPLS_IN_IP

      public static final Protocol MPLS_IN_IP
    • MANET

      public static final Protocol MANET
    • HIP

      public static final Protocol HIP
    • SHIM6

      public static final Protocol SHIM6
    • WESP

      public static final Protocol WESP
    • ROHC

      public static final Protocol ROHC
    • UNASSIGNED

      public static final Protocol UNASSIGNED
    • EXPERIMENTATION_AND_TESTING_1

      public static final Protocol EXPERIMENTATION_AND_TESTING_1
    • EXPERIMENTATION_AND_TESTING_2

      public static final Protocol EXPERIMENTATION_AND_TESTING_2
    • RESERVED

      public static final Protocol RESERVED
  • Method Details

    • values

      public static Protocol[] 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

      public static Protocol valueOf(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:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null
    • valueOf

      public static Protocol valueOf(short decimal) throws IllegalArgumentException
      Gets a Protocol given its decimal representation.

      For the duplicated decimal 84 shared by both TTP and IPTM, returns IPTM.

      Returns UNASSIGNED for any unassigned decimal.

      Throws:
      IllegalArgumentException - when decimal is not between 0 and 255.
    • getProtocolByKeyword

      public static Protocol getProtocolByKeyword(String keyword) throws IllegalArgumentException
      Gets a protocol given its keyword (or name if doesn't have a keyword), case-insensitive in Locale.ROOT.
      Returns:
      the protocol or null if not found
      Throws:
      IllegalArgumentException
      See Also:
    • toString

      public String toString()
      Overrides:
      toString in class Enum<Protocol>
      Returns:
      The keyword, if present, or enum name when no keyword.
      See Also:
    • 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 enum Enum.ordinal().

      UNASSIGNED is used for all unassigned decimal values and is represented by -1.

      Returns:
      The 8-bit protocol number or -1 for UNASSIGNED.
    • getKeyword

      public String getKeyword()
      Returns:
      The keyword or "" when no keyword in table
      See Also:
    • getProtocol

      public String getProtocol()
      Returns:
      The protocol description or "" when no protocol in table
    • isIpv6ExtensionHeader

      public boolean isIpv6ExtensionHeader()
      Returns:
      The IPv6 Extension Header flag.