com.veraxsystems.icmp
Enum IcmpStatus

java.lang.Object
  extended by java.lang.Enum<IcmpStatus>
      extended by com.veraxsystems.icmp.IcmpStatus
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<IcmpStatus>

public enum IcmpStatus
extends java.lang.Enum<IcmpStatus>

The set of expected ICMP response statuses. They are mapped directly to ICMP response types/codes as defined in RFC792, RFC1256, RFC950, RFC1393, RFC1475, RFC1788, RFC2521, RFC4065. The interpretation is:


Enum Constant Summary
BadMessageLength
           
CommunicationProhibited
           
DatagramConverionError
           
DestinationHostProhibited
           
DestinationHostUnknown
           
DestinationHostUnreachableFforService
           
DestinationNetworkProhibited
           
DestinationNetworkUnknown
           
DestinationNetworkUnreachableForService
           
EchoReply
           
FragmentationNeeded
           
FragmentReassemblyTimeExceeded
           
HostPrecedenceViolation
           
HostUnreachable
           
MessageParameterProblem
           
MissingRequiredMessageOption
           
NetUnreachable
           
PortUnreachable
           
PrecedenceCutoffInEffect
           
ProtocolUnreachable
           
RedirectDatagramForHost
           
RedirectDatagramForNetwork
           
RedirectDatagramTypeServiceHost
           
RedirectDatagramTypeServiceNetwork
           
SourceHostIsolated
           
SourceQuench
           
SourceRouteFailed
           
TimeToLiveExceeded
           
UnexpectedResponse
           
 
Method Summary
 int getValue()
          Get integer code of enumeration
static IcmpStatus valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static IcmpStatus[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

EchoReply

public static final IcmpStatus EchoReply

NetUnreachable

public static final IcmpStatus NetUnreachable

HostUnreachable

public static final IcmpStatus HostUnreachable

ProtocolUnreachable

public static final IcmpStatus ProtocolUnreachable

PortUnreachable

public static final IcmpStatus PortUnreachable

FragmentationNeeded

public static final IcmpStatus FragmentationNeeded

SourceRouteFailed

public static final IcmpStatus SourceRouteFailed

DestinationNetworkUnknown

public static final IcmpStatus DestinationNetworkUnknown

DestinationHostUnknown

public static final IcmpStatus DestinationHostUnknown

SourceHostIsolated

public static final IcmpStatus SourceHostIsolated

DestinationNetworkProhibited

public static final IcmpStatus DestinationNetworkProhibited

DestinationHostProhibited

public static final IcmpStatus DestinationHostProhibited

DestinationNetworkUnreachableForService

public static final IcmpStatus DestinationNetworkUnreachableForService

DestinationHostUnreachableFforService

public static final IcmpStatus DestinationHostUnreachableFforService

CommunicationProhibited

public static final IcmpStatus CommunicationProhibited

HostPrecedenceViolation

public static final IcmpStatus HostPrecedenceViolation

PrecedenceCutoffInEffect

public static final IcmpStatus PrecedenceCutoffInEffect

SourceQuench

public static final IcmpStatus SourceQuench

RedirectDatagramForNetwork

public static final IcmpStatus RedirectDatagramForNetwork

RedirectDatagramForHost

public static final IcmpStatus RedirectDatagramForHost

RedirectDatagramTypeServiceNetwork

public static final IcmpStatus RedirectDatagramTypeServiceNetwork

RedirectDatagramTypeServiceHost

public static final IcmpStatus RedirectDatagramTypeServiceHost

TimeToLiveExceeded

public static final IcmpStatus TimeToLiveExceeded

FragmentReassemblyTimeExceeded

public static final IcmpStatus FragmentReassemblyTimeExceeded

MessageParameterProblem

public static final IcmpStatus MessageParameterProblem

MissingRequiredMessageOption

public static final IcmpStatus MissingRequiredMessageOption

BadMessageLength

public static final IcmpStatus BadMessageLength

DatagramConverionError

public static final IcmpStatus DatagramConverionError

UnexpectedResponse

public static final IcmpStatus UnexpectedResponse
Method Detail

values

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

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

valueOf

public static IcmpStatus 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

getValue

public int getValue()
Get integer code of enumeration

Returns:
integer code