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
          The DESTINATIO n_ unreachable.
ECHO_REPLY
          The ECH o_ reply.
ECHO_REQUEST
          The ECH o_ request.
INFO_REQUEST
          The INF o_ request.
INFO_RESPONSE
          The INF o_ response.
PARAM_PROBLEM
          The PARA m_ problem.
REDIRECT
          The REDIRECT.
SOURCE_QUENCH
          The SOURC e_ quench.
TIME_EXCEEDED
          The TIM e_ exceeded.
TIMESTAMP_REQUEST
          The TIMESTAM p_ request.
TIMESTAMP_RESPONSE
          The TIMESTAM p_ response.
 
Field Summary
static int DESTINATION_UNREACHABLE_ID
          The Constant DESTINATION_UNREACHABLE_ID.
static int ECHO_REPLY_ID
          The Constant ECHO_REPLY_ID.
static int ECHO_REQUEST_ID
          The Constant ECHO_REQUEST_ID.
 int id
          The id.
static int INFO_REQUEST_ID
          The Constant INFO_REQUEST_ID.
static int INFO_RESPONSE_ID
          The Constant INFO_RESPONSE_ID.
static int PARAM_PROBLEM_ID
          The Constant PARAM_PROBLEM_ID.
static int REDIRECT_ID
          The Constant REDIRECT_ID.
static int SOURCE_QUENCH_ID
          The Constant SOURCE_QUENCH_ID.
static int TIME_EXCEEDED_ID
          The Constant TIME_EXCEEDED_ID.
static int TIMESTAMP_REQUEST_ID
          The Constant TIMESTAMP_REQUEST_ID.
static int TIMESTAMP_RESPONSE_ID
          The Constant TIMESTAMP_RESPONSE_ID.
 
Method Summary
 java.lang.String getDescription()
          Gets the description.
 int getId()
          Gets the id.
static java.lang.String toString(int id)
          To string.
static Icmp.IcmpType valueOf(int type)
          Value of.
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 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
 

Enum Constant Detail

DESTINATION_UNREACHABLE

public static final Icmp.IcmpType DESTINATION_UNREACHABLE
The DESTINATIO n_ unreachable.


ECHO_REPLY

public static final Icmp.IcmpType ECHO_REPLY
The ECH o_ reply.


ECHO_REQUEST

public static final Icmp.IcmpType ECHO_REQUEST
The ECH o_ request.


INFO_REQUEST

public static final Icmp.IcmpType INFO_REQUEST
The INF o_ request.


INFO_RESPONSE

public static final Icmp.IcmpType INFO_RESPONSE
The INF o_ response.


PARAM_PROBLEM

public static final Icmp.IcmpType PARAM_PROBLEM
The PARA m_ problem.


REDIRECT

public static final Icmp.IcmpType REDIRECT
The REDIRECT.


SOURCE_QUENCH

public static final Icmp.IcmpType SOURCE_QUENCH
The SOURC e_ quench.


TIME_EXCEEDED

public static final Icmp.IcmpType TIME_EXCEEDED
The TIM e_ exceeded.


TIMESTAMP_REQUEST

public static final Icmp.IcmpType TIMESTAMP_REQUEST
The TIMESTAM p_ request.


TIMESTAMP_RESPONSE

public static final Icmp.IcmpType TIMESTAMP_RESPONSE
The TIMESTAM p_ response.

Field Detail

DESTINATION_UNREACHABLE_ID

public static final int DESTINATION_UNREACHABLE_ID
The Constant DESTINATION_UNREACHABLE_ID.

See Also:
Constant Field Values

ECHO_REPLY_ID

public static final int ECHO_REPLY_ID
The Constant ECHO_REPLY_ID.

See Also:
Constant Field Values

ECHO_REQUEST_ID

public static final int ECHO_REQUEST_ID
The Constant ECHO_REQUEST_ID.

See Also:
Constant Field Values

INFO_REQUEST_ID

public static final int INFO_REQUEST_ID
The Constant INFO_REQUEST_ID.

See Also:
Constant Field Values

INFO_RESPONSE_ID

public static final int INFO_RESPONSE_ID
The Constant INFO_RESPONSE_ID.

See Also:
Constant Field Values

PARAM_PROBLEM_ID

public static final int PARAM_PROBLEM_ID
The Constant PARAM_PROBLEM_ID.

See Also:
Constant Field Values

REDIRECT_ID

public static final int REDIRECT_ID
The Constant REDIRECT_ID.

See Also:
Constant Field Values

SOURCE_QUENCH_ID

public static final int SOURCE_QUENCH_ID
The Constant SOURCE_QUENCH_ID.

See Also:
Constant Field Values

TIME_EXCEEDED_ID

public static final int TIME_EXCEEDED_ID
The Constant TIME_EXCEEDED_ID.

See Also:
Constant Field Values

TIMESTAMP_REQUEST_ID

public static final int TIMESTAMP_REQUEST_ID
The Constant TIMESTAMP_REQUEST_ID.

See Also:
Constant Field Values

TIMESTAMP_RESPONSE_ID

public static final int TIMESTAMP_RESPONSE_ID
The Constant TIMESTAMP_RESPONSE_ID.

See Also:
Constant Field Values

id

public final int id
The id.

Method Detail

values

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

Returns:
an array containing the constants of this enum type, in the order they are 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
java.lang.NullPointerException - if the argument is null

toString

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

Parameters:
id - the id
Returns:
the string

valueOf

public static Icmp.IcmpType valueOf(int type)
Value of.

Parameters:
type - the type
Returns:
the icmp type

getDescription

public final java.lang.String getDescription()
Gets the description.

Returns:
the description

getId

public final int getId()
Gets the id.

Returns:
the id