SourceForge Jpcap

net.sourceforge.jpcap.net
Class ICMPMessage

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

public class ICMPMessage
extends Object
implements ICMPMessages

ICMP message utility class.

Version:
$Revision: 1.1 $
Author:
Patrick Charles and Jonas Lehmann
Last modified by:
$Author: esmondpitt $
Last modified at:
$Date: 2008/08/21 02:58:19 $

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 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 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.

Copyright © Patrick Charles & Jonas Lehmann, 2001; Esmond Pitt, 2008.