org.jnetpcap.protocol.network
Enum Icmp.IcmpType

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

public static enum Icmp.IcmpType
extends java.lang.Enum<Icmp.IcmpType>

A table of IcmpTypes and their names

Author:
Mark Bednarczyk, Sly Technologies, Inc.

Enum Constant Summary
DESTINATION_UNREACHABLE
           
ECHO_REPLY
           
ECHO_REQUEST
           
INFO_REQUEST
           
INFO_RESPONSE
           
PARAM_PROBLEM
           
REDIRECT
           
SOURCE_QUENCH
           
TIME_EXCEEDED
           
TIMESTAMP_REQUEST
           
TIMESTAMP_RESPONSE
           
 
Field Summary
static int DESTINATION_UNREACHABLE_ID
           
static int ECHO_REPLY_ID
           
static int ECHO_REQUEST_ID
           
 int id
           
static int INFO_REQUEST_ID
           
static int INFO_RESPONSE_ID
           
static int PARAM_PROBLEM_ID
           
static int REDIRECT_ID
           
static int SOURCE_QUENCH_ID
           
static int TIME_EXCEEDED_ID
           
static int TIMESTAMP_REQUEST_ID
           
static int TIMESTAMP_RESPONSE_ID
           
 
Method Summary
 java.lang.String getDescription()
           
 int getId()
           
static java.lang.String toString(int id)
           
static Icmp.IcmpType valueOf(int type)
           
static Icmp.IcmpType valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static Icmp.IcmpType[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

DESTINATION_UNREACHABLE

public static final Icmp.IcmpType DESTINATION_UNREACHABLE

ECHO_REPLY

public static final Icmp.IcmpType ECHO_REPLY

ECHO_REQUEST

public static final Icmp.IcmpType ECHO_REQUEST

INFO_REQUEST

public static final Icmp.IcmpType INFO_REQUEST

INFO_RESPONSE

public static final Icmp.IcmpType INFO_RESPONSE

PARAM_PROBLEM

public static final Icmp.IcmpType PARAM_PROBLEM

REDIRECT

public static final Icmp.IcmpType REDIRECT

SOURCE_QUENCH

public static final Icmp.IcmpType SOURCE_QUENCH

TIME_EXCEEDED

public static final Icmp.IcmpType TIME_EXCEEDED

TIMESTAMP_REQUEST

public static final Icmp.IcmpType TIMESTAMP_REQUEST

TIMESTAMP_RESPONSE

public static final Icmp.IcmpType TIMESTAMP_RESPONSE
Field Detail

DESTINATION_UNREACHABLE_ID

public static final int DESTINATION_UNREACHABLE_ID
See Also:
Constant Field Values

ECHO_REPLY_ID

public static final int ECHO_REPLY_ID
See Also:
Constant Field Values

ECHO_REQUEST_ID

public static final int ECHO_REQUEST_ID
See Also:
Constant Field Values

INFO_REQUEST_ID

public static final int INFO_REQUEST_ID
See Also:
Constant Field Values

INFO_RESPONSE_ID

public static final int INFO_RESPONSE_ID
See Also:
Constant Field Values

PARAM_PROBLEM_ID

public static final int PARAM_PROBLEM_ID
See Also:
Constant Field Values

REDIRECT_ID

public static final int REDIRECT_ID
See Also:
Constant Field Values

SOURCE_QUENCH_ID

public static final int SOURCE_QUENCH_ID
See Also:
Constant Field Values

TIME_EXCEEDED_ID

public static final int TIME_EXCEEDED_ID
See Also:
Constant Field Values

TIMESTAMP_REQUEST_ID

public static final int TIMESTAMP_REQUEST_ID
See Also:
Constant Field Values

TIMESTAMP_RESPONSE_ID

public static final int TIMESTAMP_RESPONSE_ID
See Also:
Constant Field Values

id

public final int id
Method Detail

values

public static final Icmp.IcmpType[] values()
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants as follows:
for(Icmp.IcmpType c : Icmp.IcmpType.values())
        System.out.println(c);

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

valueOf

public static Icmp.IcmpType 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

toString

public static java.lang.String toString(int id)

valueOf

public static Icmp.IcmpType valueOf(int type)
Parameters:
type -
Returns:

getDescription

public final java.lang.String getDescription()

getId

public final int getId()