org.jnetpcap.protocol.network
Enum Icmp.IcmpCode
java.lang.Object
java.lang.Enum<Icmp.IcmpCode>
org.jnetpcap.protocol.network.Icmp.IcmpCode
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<Icmp.IcmpCode>
- Enclosing class:
- Icmp
public static enum Icmp.IcmpCode
- extends java.lang.Enum<Icmp.IcmpCode>
A table of Icmp sub-codes per Icmp type
- Author:
- Mark Bednarczyk, Sly Technologies, Inc.
| 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 |
DESTINATION_HOST_ADMIN_PROHIBITED
public static final Icmp.IcmpCode DESTINATION_HOST_ADMIN_PROHIBITED
DESTINATION_HOST_ISOLATED
public static final Icmp.IcmpCode DESTINATION_HOST_ISOLATED
DESTINATION_HOST_UNKNOWN
public static final Icmp.IcmpCode DESTINATION_HOST_UNKNOWN
DESTINATION_HOST_UNREACHABLE_FOR_SERVICE
public static final Icmp.IcmpCode DESTINATION_HOST_UNREACHABLE_FOR_SERVICE
DESTINATION_NETWORK_ADMIN_PROHIBITED
public static final Icmp.IcmpCode DESTINATION_NETWORK_ADMIN_PROHIBITED
DESTINATION_NETWORK_REDIRECT
public static final Icmp.IcmpCode DESTINATION_NETWORK_REDIRECT
DESTINATION_NETWORK_UNREACHABLE
public static final Icmp.IcmpCode DESTINATION_NETWORK_UNREACHABLE
DESTINATION_NETWORK_UNREACHABLE_FOR_SERVICE
public static final Icmp.IcmpCode DESTINATION_NETWORK_UNREACHABLE_FOR_SERVICE
DESTINATION_NO_FRAG
public static final Icmp.IcmpCode DESTINATION_NO_FRAG
DESTINATION_PORT_UNREACHABLE
public static final Icmp.IcmpCode DESTINATION_PORT_UNREACHABLE
DESTINATION_PROTOCOL_UNREACHABLE
public static final Icmp.IcmpCode DESTINATION_PROTOCOL_UNREACHABLE
DESTINATION_SOURCE_ROUTE
public static final Icmp.IcmpCode DESTINATION_SOURCE_ROUTE
PARAMETER_PROBLEM_MISSING_OPTION
public static final Icmp.IcmpCode PARAMETER_PROBLEM_MISSING_OPTION
PARAMETER_PROBLEM_WITH_DATAGRAM
public static final Icmp.IcmpCode PARAMETER_PROBLEM_WITH_DATAGRAM
REDIRECT_HOST
public static final Icmp.IcmpCode REDIRECT_HOST
REDIRECT_NETWORK
public static final Icmp.IcmpCode REDIRECT_NETWORK
REDIRECT_SERVICE_AND_HOST
public static final Icmp.IcmpCode REDIRECT_SERVICE_AND_HOST
REDIRECT_SERVICE_AND_NETWORK
public static final Icmp.IcmpCode REDIRECT_SERVICE_AND_NETWORK
TIME_EXCEEDED_DURING_FRAG_REASSEMBLY
public static final Icmp.IcmpCode TIME_EXCEEDED_DURING_FRAG_REASSEMBLY
TIME_EXCEEDED_IN_TRANSIT
public static final Icmp.IcmpCode TIME_EXCEEDED_IN_TRANSIT
values
public static final Icmp.IcmpCode[] 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.IcmpCode c : Icmp.IcmpCode.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.IcmpCode 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 type,
int code)
valueOf
public static Icmp.IcmpCode valueOf(int type,
int code)
getCode
public final int getCode()
getDescription
public final java.lang.String getDescription()
getType
public final Icmp.IcmpType getType()