org.jnetpcap.protocol.network
Enum Ip4.Ip4Type

java.lang.Object
  extended by java.lang.Enum<Ip4.Ip4Type>
      extended by org.jnetpcap.protocol.network.Ip4.Ip4Type
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<Ip4.Ip4Type>, JHeaderType
Enclosing class:
Ip4

public static enum Ip4.Ip4Type
extends java.lang.Enum<Ip4.Ip4Type>
implements JHeaderType

A table of IpTypes and their names.

Author:
Mark Bednarczyk, Sly Technologies, Inc.

Enum Constant Summary
AH
          Authentication Header [RFC4302].
ANY_LOC
          any host internal protocol [IANA].
ARGUS
          ARGUS [RWS4].
BBN_RCC_MON
          BBN RCC Monitoring [SGC].
BNA
          BNA [Salamon].
CBT
          CBT [Ballardie].
CHAOS
          Chaos [NC3].
DCCP
          Datagram Congestion Control Protocol [RFC4340].
DCN_MEAS
          DCN Measurement Subsystems [DLM1].
DDP
          Datagram Delivery Protocol [WXC].
DSR
          Dynamic Source Routing Protocol [RFC4728].
EGP
          Exterior Gateway Protocol [RFC888][DLM1].
EMCON
          EMCON [BN7].
ESP
          Encap Security Payload [RFC4303].
FC
          Fibre Channel [Rajagopal].
GGP
          Gateway-to-Gateway [RFC823].
GRE
          General Routing Encapsulation [Li].
HMP
          Host Monitoring [RFC869][RH6].
HOPORT
          IPv6 Hop-by-Hop Option [RFC1883].
I_NLSP
          Integrated Net Layer Security TUBA [GLENN].
ICMP
          Internet Control Message [RFC792].
IDPR
          Inter-Domain Policy Routing Protocol [MXS1].
IDPR_CMTP
          IDPR Control Message Transport Proto [MXS1].
IDRP
          Inter-Domain Routing Protocol [Hares].
IGMP
          Internet Group Management [RFC1112].
IGP
          any private interior gateway [IANA] (used by Cisco for their IGRP).
IL
          IL Transport Protocol [Presotto].
IP
          Unreliable datagram protocol.
IPIP
          IP-within-IP Encapsulation Protocol [JI6].
IPv6
          Ipv6 [Deering].
IPv6_FRAG
          Fragment Header for IPv6 [Deering].
IPv6_ICMP
          ICMP for IPv6 [RFC1883].
IPv6_NoNxt
          No Next Header for IPv6 [RFC1883].
IPv6_Opts
          Destination Options for IPv6 [RFC1883].
IPv6_ROUTE
          Routing Header for IPv6 [Deering].
IPX_In_IP
          IPX in IP [Lee].
IRTP
          Internet Reliable Transaction [RFC938][TXM].
ISO_TP4
          ISO Transport Protocol Class 4 [RFC905][RC77].
LEAF_1
          Leaf-1 [BWB6].
LEAF_2
          Leaf-2 [BWB6].
MERIT_INP
          MERIT Internodal Protocol [HWB].
MFE_NSP
          MFE Network Services Protocol [MFENET][BCH2].
MOBILE
          IP Mobility [Perkins].
MPLS_in_IP
          MPLS-in-IP [RFC4023].
MUX
          Multiplexing [IEN90][JBP].
NARP
          NBMA Address Resolution Protocol [RFC1735].
NETBLT
          Bulk Data Transfer Protocol [RFC969][DDC1].
NVP_II
          PUP [PUP][XEROX].
PIM
          Protocol Independent Multicast [Farinacci].
PRM
          Packet Radio Measurement [ZSU].
PUP
          CBT [Ballardie].
RDP
          Reliable Data Protocol [RFC908][RH6].
RSVP
          Reservation Protocol [Braden].
SDRP
          Source Demand Routing Protocol [DXE1].
SKIP
          SKIP [Markson].
ST
          Stream [RFC1190][RFC1819].
STP
          Schedule Transfer Protocol [JMP].
SWIPE
          IP with Encryption [JI6].
TCP
          Transmission Control [RFC793].
THIRD_PC
          Third Party Connect Protocol [SAF3].
TLSP
          Transport Layer Security Protocol [Oberg] using Kryptonet key management.
TP_PLUS
          TP++ Transport Protocol [DXF].
TRUNK_1
          Trunk-1 [BWB6].
TRUNK_2
          Trunk-2 [BWB6].
UDP
          User Datagram [RFC768][JBP].
XNET
          Cross Net Debugger [IEN158][JFH2].
XNS_IDP
          XEROX NS IDP [ETHERNET][XEROX].
XTP
          XTP [GXC].
 
Method Summary
 java.lang.String getDescription()
          Description of the type value.
 int[] getTypeValues()
          Converts contant to numerical ip type.
static java.lang.String toString(int type)
          Name of the constant.
static Ip4.Ip4Type valueOf(int type)
          Converts a numerical type to constant.
static Ip4.Ip4Type valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static Ip4.Ip4Type[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.jnetpcap.packet.JHeaderType
ordinal
 

Enum Constant Detail

HOPORT

public static final Ip4.Ip4Type HOPORT
IPv6 Hop-by-Hop Option [RFC1883].


ICMP

public static final Ip4.Ip4Type ICMP
Internet Control Message [RFC792].


IGMP

public static final Ip4.Ip4Type IGMP
Internet Group Management [RFC1112].


GGP

public static final Ip4.Ip4Type GGP
Gateway-to-Gateway [RFC823].


IP

public static final Ip4.Ip4Type IP
Unreliable datagram protocol.


ST

public static final Ip4.Ip4Type ST
Stream [RFC1190][RFC1819].


TCP

public static final Ip4.Ip4Type TCP
Transmission Control [RFC793].


CBT

public static final Ip4.Ip4Type CBT
CBT [Ballardie].


EGP

public static final Ip4.Ip4Type EGP
Exterior Gateway Protocol [RFC888][DLM1].


IGP

public static final Ip4.Ip4Type IGP
any private interior gateway [IANA] (used by Cisco for their IGRP).


BBN_RCC_MON

public static final Ip4.Ip4Type BBN_RCC_MON
BBN RCC Monitoring [SGC].


NVP_II

public static final Ip4.Ip4Type NVP_II
PUP [PUP][XEROX].


PUP

public static final Ip4.Ip4Type PUP
CBT [Ballardie].


ARGUS

public static final Ip4.Ip4Type ARGUS
ARGUS [RWS4].


EMCON

public static final Ip4.Ip4Type EMCON
EMCON [BN7].


XNET

public static final Ip4.Ip4Type XNET
Cross Net Debugger [IEN158][JFH2].


CHAOS

public static final Ip4.Ip4Type CHAOS
Chaos [NC3].


UDP

public static final Ip4.Ip4Type UDP
User Datagram [RFC768][JBP].


MUX

public static final Ip4.Ip4Type MUX
Multiplexing [IEN90][JBP].


DCN_MEAS

public static final Ip4.Ip4Type DCN_MEAS
DCN Measurement Subsystems [DLM1].


HMP

public static final Ip4.Ip4Type HMP
Host Monitoring [RFC869][RH6].


PRM

public static final Ip4.Ip4Type PRM
Packet Radio Measurement [ZSU].


XNS_IDP

public static final Ip4.Ip4Type XNS_IDP
XEROX NS IDP [ETHERNET][XEROX].


TRUNK_1

public static final Ip4.Ip4Type TRUNK_1
Trunk-1 [BWB6].


TRUNK_2

public static final Ip4.Ip4Type TRUNK_2
Trunk-2 [BWB6].


LEAF_1

public static final Ip4.Ip4Type LEAF_1
Leaf-1 [BWB6].


LEAF_2

public static final Ip4.Ip4Type LEAF_2
Leaf-2 [BWB6].


RDP

public static final Ip4.Ip4Type RDP
Reliable Data Protocol [RFC908][RH6].


IRTP

public static final Ip4.Ip4Type IRTP
Internet Reliable Transaction [RFC938][TXM].


ISO_TP4

public static final Ip4.Ip4Type ISO_TP4
ISO Transport Protocol Class 4 [RFC905][RC77].


NETBLT

public static final Ip4.Ip4Type NETBLT
Bulk Data Transfer Protocol [RFC969][DDC1].


MFE_NSP

public static final Ip4.Ip4Type MFE_NSP
MFE Network Services Protocol [MFENET][BCH2].


MERIT_INP

public static final Ip4.Ip4Type MERIT_INP
MERIT Internodal Protocol [HWB].


DCCP

public static final Ip4.Ip4Type DCCP
Datagram Congestion Control Protocol [RFC4340].


THIRD_PC

public static final Ip4.Ip4Type THIRD_PC
Third Party Connect Protocol [SAF3].


IDPR

public static final Ip4.Ip4Type IDPR
Inter-Domain Policy Routing Protocol [MXS1].


XTP

public static final Ip4.Ip4Type XTP
XTP [GXC].


DDP

public static final Ip4.Ip4Type DDP
Datagram Delivery Protocol [WXC].


IDPR_CMTP

public static final Ip4.Ip4Type IDPR_CMTP
IDPR Control Message Transport Proto [MXS1].


TP_PLUS

public static final Ip4.Ip4Type TP_PLUS
TP++ Transport Protocol [DXF].


IL

public static final Ip4.Ip4Type IL
IL Transport Protocol [Presotto].


IPv6

public static final Ip4.Ip4Type IPv6
Ipv6 [Deering].


SDRP

public static final Ip4.Ip4Type SDRP
Source Demand Routing Protocol [DXE1].


IPv6_ROUTE

public static final Ip4.Ip4Type IPv6_ROUTE
Routing Header for IPv6 [Deering].


IPv6_FRAG

public static final Ip4.Ip4Type IPv6_FRAG
Fragment Header for IPv6 [Deering].


IDRP

public static final Ip4.Ip4Type IDRP
Inter-Domain Routing Protocol [Hares].


RSVP

public static final Ip4.Ip4Type RSVP
Reservation Protocol [Braden].


GRE

public static final Ip4.Ip4Type GRE
General Routing Encapsulation [Li].


DSR

public static final Ip4.Ip4Type DSR
Dynamic Source Routing Protocol [RFC4728].


BNA

public static final Ip4.Ip4Type BNA
BNA [Salamon].


ESP

public static final Ip4.Ip4Type ESP
Encap Security Payload [RFC4303].


AH

public static final Ip4.Ip4Type AH
Authentication Header [RFC4302].


I_NLSP

public static final Ip4.Ip4Type I_NLSP
Integrated Net Layer Security TUBA [GLENN].


SWIPE

public static final Ip4.Ip4Type SWIPE
IP with Encryption [JI6].


NARP

public static final Ip4.Ip4Type NARP
NBMA Address Resolution Protocol [RFC1735].


MOBILE

public static final Ip4.Ip4Type MOBILE
IP Mobility [Perkins].


TLSP

public static final Ip4.Ip4Type TLSP
Transport Layer Security Protocol [Oberg] using Kryptonet key management.


SKIP

public static final Ip4.Ip4Type SKIP
SKIP [Markson].


IPv6_ICMP

public static final Ip4.Ip4Type IPv6_ICMP
ICMP for IPv6 [RFC1883].


IPv6_NoNxt

public static final Ip4.Ip4Type IPv6_NoNxt
No Next Header for IPv6 [RFC1883].


IPv6_Opts

public static final Ip4.Ip4Type IPv6_Opts
Destination Options for IPv6 [RFC1883].


ANY_LOC

public static final Ip4.Ip4Type ANY_LOC
any host internal protocol [IANA].


IPIP

public static final Ip4.Ip4Type IPIP
IP-within-IP Encapsulation Protocol [JI6].


PIM

public static final Ip4.Ip4Type PIM
Protocol Independent Multicast [Farinacci].


IPX_In_IP

public static final Ip4.Ip4Type IPX_In_IP
IPX in IP [Lee].


STP

public static final Ip4.Ip4Type STP
Schedule Transfer Protocol [JMP].


FC

public static final Ip4.Ip4Type FC
Fibre Channel [Rajagopal].


MPLS_in_IP

public static final Ip4.Ip4Type MPLS_in_IP
MPLS-in-IP [RFC4023].

Method Detail

values

public static Ip4.Ip4Type[] 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 (Ip4.Ip4Type c : Ip4.Ip4Type.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static Ip4.Ip4Type 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 name
java.lang.NullPointerException - if the argument is null

toString

public static java.lang.String toString(int type)
Name of the constant.

Parameters:
type - ip type number
Returns:
constants name

valueOf

public static Ip4.Ip4Type valueOf(int type)
Converts a numerical type to constant.

Parameters:
type - Ip4 type number
Returns:
constant or null if not found

getDescription

public final java.lang.String getDescription()
Description of the type value.

Returns:
description string

getTypeValues

public final int[] getTypeValues()
Converts contant to numerical ip type.

Specified by:
getTypeValues in interface JHeaderType
Returns:
Ip4 type number