net.sourceforge.jpcap.net
Class ICMPMessage

java.lang.Object
  |
  +--net.sourceforge.jpcap.net.ICMPMessage
All Implemented Interfaces:
ICMPMessages

public class ICMPMessage
extends java.lang.Object
implements ICMPMessages

ICMP message utility class.


Fields inherited from interface net.sourceforge.jpcap.net.ICMPMessages
ECHO, ECHO_REPLY, IREQ, IREQ_REPLY, MASK_REPLY, MASK_REQ, PARAM_PROB, REDIRECT, ROUTER_ADVERT, ROUTER_SOLICIT, SOURCE_QUENCH, TIME_EXCEED, TSTAMP, TSTAMP_REPLY, UNREACH
 
Constructor Summary
ICMPMessage()
           
 
Method Summary
static java.lang.String getDescription(int code)
          Fetch an ICMP message.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ICMPMessage

public ICMPMessage()
Method Detail

getDescription

public static java.lang.String getDescription(int code)
Fetch an ICMP message.
Parameters:
code - the code associated with the message.
Returns:
a message describing the significance of the ICMP code.