net.sourceforge.jpcap.net
Class ICMPMessage

java.lang.Object
  extended bynet.sourceforge.jpcap.net.ICMPMessage
All Implemented Interfaces:
ICMPMessages

public class ICMPMessage
extends java.lang.Object
implements ICMPMessages

ICMP message utility class.


Field Summary
 
Fields inherited from interface net.sourceforge.jpcap.net.ICMPMessages
ECHO, ECHO_REPLY, IREQ, IREQ_REPLY, LAST_MAJOR_CODE, MASK_REPLY, MASK_REQ, PARAM_PROB, REDIRECT_HOST, REDIRECT_NET, REDIRECT_TOSHOST, REDIRECT_TOSNET, ROUTER_ADVERT, ROUTER_SOLICIT, SOURCE_QUENCH, TIME_EXCEED_INTRANS, TIME_EXCEED_REASS, TSTAMP, TSTAMP_REPLY, UNREACH_HOST, UNREACH_HOST_PROHIB, UNREACH_HOST_UNKNOWN, UNREACH_ISOLATED, UNREACH_NEEDFRAG, UNREACH_NET, UNREACH_NET_PROHIB, UNREACH_NET_UNKNOWN, UNREACH_PORT, UNREACH_PROTOCOL, UNREACH_SRCFAIL, UNREACH_TOSHOST, UNREACH_TOSNET
 
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.