net.clackrouter.packets
Class VNSICMPType

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

public class VNSICMPType
extends java.lang.Object

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


Field Summary
static byte ECHO_REPLY
          ICMP message types.
static byte ECHO_REQUEST
           
static VNSICMPType EchoReply
           
static VNSICMPType EchoRequest
           
static byte INFO_REQUEST
           
static byte INFO_REQUEST_REPLY
           
static VNSICMPType InfoRequest
           
static VNSICMPType InfoRequestReply
           
static byte MASK_REQUEST
           
static byte MASK_REQUEST_REPLY
           
static VNSICMPType MaskRequest
           
static VNSICMPType MaskRequestReply
           
static byte PARAMETER_PROBLEM
           
static VNSICMPType ParameterProblem
           
static VNSICMPType Redirect
           
static byte REDIRECT
           
static byte ROUTER_ADVERT
           
static byte ROUTER_SOLICIT
           
static VNSICMPType RouterAdvert
           
static VNSICMPType RouterSolicit
           
static byte SOURCE_QUENCH
           
static VNSICMPType SourceQuench
           
static byte TIME_EXCEEDED
           
static byte TIME_STAMP
           
static byte TIME_STAMP_REPLY
           
static VNSICMPType TimeExceeded
           
static VNSICMPType TimeStamp
           
static VNSICMPType TimeStampReply
           
static VNSICMPType Unreach
           
static byte UNREACH
           
 
Method Summary
static VNSICMPType convert(byte type)
          Convert a byte version of the type to its object version.
 byte getValue()
          Returns protocol-defined value of the type.
 java.lang.String toString()
          Returns the human-readable name of the type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ECHO_REPLY

public static final byte ECHO_REPLY
ICMP message types.

See Also:
Constant Field Values

UNREACH

public static final byte UNREACH
See Also:
Constant Field Values

SOURCE_QUENCH

public static final byte SOURCE_QUENCH
See Also:
Constant Field Values

REDIRECT

public static final byte REDIRECT
See Also:
Constant Field Values

ECHO_REQUEST

public static final byte ECHO_REQUEST
See Also:
Constant Field Values

ROUTER_ADVERT

public static final byte ROUTER_ADVERT
See Also:
Constant Field Values

ROUTER_SOLICIT

public static final byte ROUTER_SOLICIT
See Also:
Constant Field Values

TIME_EXCEEDED

public static final byte TIME_EXCEEDED
See Also:
Constant Field Values

PARAMETER_PROBLEM

public static final byte PARAMETER_PROBLEM
See Also:
Constant Field Values

TIME_STAMP

public static final byte TIME_STAMP
See Also:
Constant Field Values

TIME_STAMP_REPLY

public static final byte TIME_STAMP_REPLY
See Also:
Constant Field Values

INFO_REQUEST

public static final byte INFO_REQUEST
See Also:
Constant Field Values

INFO_REQUEST_REPLY

public static final byte INFO_REQUEST_REPLY
See Also:
Constant Field Values

MASK_REQUEST

public static final byte MASK_REQUEST
See Also:
Constant Field Values

MASK_REQUEST_REPLY

public static final byte MASK_REQUEST_REPLY
See Also:
Constant Field Values

EchoReply

public static final VNSICMPType EchoReply

Unreach

public static final VNSICMPType Unreach

SourceQuench

public static final VNSICMPType SourceQuench

Redirect

public static final VNSICMPType Redirect

EchoRequest

public static final VNSICMPType EchoRequest

RouterAdvert

public static final VNSICMPType RouterAdvert

RouterSolicit

public static final VNSICMPType RouterSolicit

TimeExceeded

public static final VNSICMPType TimeExceeded

ParameterProblem

public static final VNSICMPType ParameterProblem

TimeStamp

public static final VNSICMPType TimeStamp

TimeStampReply

public static final VNSICMPType TimeStampReply

InfoRequest

public static final VNSICMPType InfoRequest

InfoRequestReply

public static final VNSICMPType InfoRequestReply

MaskRequest

public static final VNSICMPType MaskRequest

MaskRequestReply

public static final VNSICMPType MaskRequestReply
Method Detail

toString

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

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

getValue

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

Returns:
Protocol-defined value of the type

convert

public static VNSICMPType convert(byte type)
Convert a byte version of the type to its object version.

Parameters:
type - Type of the ICMP packet
Returns:
Type of the ICMP packet