net.clackrouter.packets
Class VNSICMPCode

java.lang.Object
  extended by net.clackrouter.packets.VNSICMPCode

public class VNSICMPCode
extends java.lang.Object

Encapsulates Internet Control Message Protocol type. Defined in RFC 792.


Field Summary
static VNSICMPCode None
           
static byte NONE
          ICMP packet codes.
static byte PARAMETER_PROBLEM_OP_TABLE_SENT
           
static VNSICMPCode ParameterProblemOpTableSent
           
static byte REDIRECT_HOST
           
static byte REDIRECT_NET
           
static byte REDIRECT_TOS_HOST
           
static byte REDIRECT_TOS_NET
           
static VNSICMPCode RedirectHost
           
static VNSICMPCode RedirectNet
           
static VNSICMPCode RedirectTOSHost
           
static VNSICMPCode RedirectTOSNet
           
static byte TIME_EXCEEDED_IN_TRANSIT
           
static byte TIME_EXCEEDED_REASSEMBLY
           
static VNSICMPCode TimeExceededInTransit
           
static VNSICMPCode TimeExceededReassembly
           
static byte UNREACH_FILTER_PROHIBITED
           
static byte UNREACH_HOST
           
static byte UNREACH_HOST_PRECEDENCE
           
static byte UNREACH_HOST_PROHIBITED
           
static byte UNREACH_HOST_UNKNOWN
           
static byte UNREACH_ISOLATED
           
static byte UNREACH_NEED_FRAG
           
static byte UNREACH_NET
           
static byte UNREACH_NET_PROHIBITED
           
static byte UNREACH_NET_UNKNOWN
           
static byte UNREACH_PORT
           
static byte UNREACH_PRECEDENCE_CUTOFF
           
static byte UNREACH_PROTOCOL
           
static byte UNREACH_SOURCE_FAILED
           
static byte UNREACH_TOS_HOST
           
static byte UNREACH_TOS_NET
           
static VNSICMPCode UnreachFilterProhibited
           
static VNSICMPCode UnreachHost
           
static VNSICMPCode UnreachHostPrecedence
           
static VNSICMPCode UnreachHostProhibited
           
static VNSICMPCode UnreachHostUnknown
           
static VNSICMPCode UnreachIsolated
           
static VNSICMPCode UnreachNeedFrag
           
static VNSICMPCode UnreachNet
           
static VNSICMPCode UnreachNetProhibited
           
static VNSICMPCode UnreachNetUnknown
           
static VNSICMPCode UnreachPort
           
static VNSICMPCode UnreachPrecedenceCutoff
           
static VNSICMPCode UnreachProtocol
           
static VNSICMPCode UnreachSourceFailed
           
static VNSICMPCode UnreachTOSHost
           
static VNSICMPCode UnreachTOSNet
           
 
Method Summary
 byte getValue()
          Returns protocol-defined value of the code.
 java.lang.String toString()
          Returns the human-readable name of the code.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

NONE

public static final byte NONE
ICMP packet codes.

See Also:
Constant Field Values

UNREACH_NET

public static final byte UNREACH_NET
See Also:
Constant Field Values

UNREACH_HOST

public static final byte UNREACH_HOST
See Also:
Constant Field Values

UNREACH_PROTOCOL

public static final byte UNREACH_PROTOCOL
See Also:
Constant Field Values

UNREACH_PORT

public static final byte UNREACH_PORT
See Also:
Constant Field Values

UNREACH_NEED_FRAG

public static final byte UNREACH_NEED_FRAG
See Also:
Constant Field Values

UNREACH_SOURCE_FAILED

public static final byte UNREACH_SOURCE_FAILED
See Also:
Constant Field Values

UNREACH_NET_UNKNOWN

public static final byte UNREACH_NET_UNKNOWN
See Also:
Constant Field Values

UNREACH_HOST_UNKNOWN

public static final byte UNREACH_HOST_UNKNOWN
See Also:
Constant Field Values

UNREACH_ISOLATED

public static final byte UNREACH_ISOLATED
See Also:
Constant Field Values

UNREACH_NET_PROHIBITED

public static final byte UNREACH_NET_PROHIBITED
See Also:
Constant Field Values

UNREACH_HOST_PROHIBITED

public static final byte UNREACH_HOST_PROHIBITED
See Also:
Constant Field Values

UNREACH_TOS_NET

public static final byte UNREACH_TOS_NET
See Also:
Constant Field Values

UNREACH_TOS_HOST

public static final byte UNREACH_TOS_HOST
See Also:
Constant Field Values

UNREACH_FILTER_PROHIBITED

public static final byte UNREACH_FILTER_PROHIBITED
See Also:
Constant Field Values

UNREACH_HOST_PRECEDENCE

public static final byte UNREACH_HOST_PRECEDENCE
See Also:
Constant Field Values

UNREACH_PRECEDENCE_CUTOFF

public static final byte UNREACH_PRECEDENCE_CUTOFF
See Also:
Constant Field Values

REDIRECT_NET

public static final byte REDIRECT_NET
See Also:
Constant Field Values

REDIRECT_HOST

public static final byte REDIRECT_HOST
See Also:
Constant Field Values

REDIRECT_TOS_NET

public static final byte REDIRECT_TOS_NET
See Also:
Constant Field Values

REDIRECT_TOS_HOST

public static final byte REDIRECT_TOS_HOST
See Also:
Constant Field Values

TIME_EXCEEDED_IN_TRANSIT

public static final byte TIME_EXCEEDED_IN_TRANSIT
See Also:
Constant Field Values

TIME_EXCEEDED_REASSEMBLY

public static final byte TIME_EXCEEDED_REASSEMBLY
See Also:
Constant Field Values

PARAMETER_PROBLEM_OP_TABLE_SENT

public static final byte PARAMETER_PROBLEM_OP_TABLE_SENT
See Also:
Constant Field Values

None

public static final VNSICMPCode None

UnreachNet

public static final VNSICMPCode UnreachNet

UnreachHost

public static final VNSICMPCode UnreachHost

UnreachProtocol

public static final VNSICMPCode UnreachProtocol

UnreachPort

public static final VNSICMPCode UnreachPort

UnreachNeedFrag

public static final VNSICMPCode UnreachNeedFrag

UnreachSourceFailed

public static final VNSICMPCode UnreachSourceFailed

UnreachNetUnknown

public static final VNSICMPCode UnreachNetUnknown

UnreachHostUnknown

public static final VNSICMPCode UnreachHostUnknown

UnreachIsolated

public static final VNSICMPCode UnreachIsolated

UnreachNetProhibited

public static final VNSICMPCode UnreachNetProhibited

UnreachHostProhibited

public static final VNSICMPCode UnreachHostProhibited

UnreachTOSNet

public static final VNSICMPCode UnreachTOSNet

UnreachTOSHost

public static final VNSICMPCode UnreachTOSHost

UnreachFilterProhibited

public static final VNSICMPCode UnreachFilterProhibited

UnreachHostPrecedence

public static final VNSICMPCode UnreachHostPrecedence

UnreachPrecedenceCutoff

public static final VNSICMPCode UnreachPrecedenceCutoff

RedirectNet

public static final VNSICMPCode RedirectNet

RedirectHost

public static final VNSICMPCode RedirectHost

RedirectTOSNet

public static final VNSICMPCode RedirectTOSNet

RedirectTOSHost

public static final VNSICMPCode RedirectTOSHost

TimeExceededInTransit

public static final VNSICMPCode TimeExceededInTransit

TimeExceededReassembly

public static final VNSICMPCode TimeExceededReassembly

ParameterProblemOpTableSent

public static final VNSICMPCode ParameterProblemOpTableSent
Method Detail

toString

public java.lang.String toString()
Returns the human-readable name of the code.

Overrides:
toString in class java.lang.Object
Returns:
Name of the code

getValue

public byte getValue()
Returns protocol-defined value of the code.

Returns:
Protocol-defined value of the code