/// ************************************************************************ /// Copyright (C) 2001, Patrick Charles and Jonas Lehmann * /// Distributed under the Mozilla Public License * /// http://www.mozilla.org/NPL/MPL-1.1.txt * /// ************************************************************************* /// namespace SharpPcap.Packets { /// Code constants for ICMP message types. /// /// Taken originally from tcpdump/print-icmp.c /// /// public struct ICMPMessages_Fields{ /// Echo reply. public readonly static int ECHO_REPLY = 0x0000; /// Destination network unreachable. public readonly static int UNREACH_NET = 0x0300; /// Destination host unreachable. public readonly static int UNREACH_HOST = 0x0301; /// Bad protocol. public readonly static int UNREACH_PROTOCOL = 0x0302; /// Bad port. public readonly static int UNREACH_PORT = 0x0303; /// IP_DF caused drop. public readonly static int UNREACH_NEEDFRAG = 0x0304; /// Src route failed. public readonly static int UNREACH_SRCFAIL = 0x0305; /// Unknown network. public readonly static int UNREACH_NET_UNKNOWN = 0x0306; /// Unknown host. public readonly static int UNREACH_HOST_UNKNOWN = 0x0307; /// Src host isolated. public readonly static int UNREACH_ISOLATED = 0x0308; /// Network access prohibited. public readonly static int UNREACH_NET_PROHIB = 0x0309; /// Host access prohibited. public readonly static int UNREACH_HOST_PROHIB = 0x030a; /// Bad TOS for net. public readonly static int UNREACH_TOSNET = 0x030b; /// Bad TOS for host. public readonly static int UNREACH_TOSHOST = 0x030c; /// Packet lost, slow down. public readonly static int SOURCE_QUENCH = 0x0400; /// Shorter route to network. public readonly static int REDIRECT_NET = 0x0500; /// Shorter route to host. public readonly static int REDIRECT_HOST = 0x0501; /// Shorter route for TOS and network. public readonly static int REDIRECT_TOSNET = 0x0502; /// Shorter route for TOS and host. public readonly static int REDIRECT_TOSHOST = 0x0503; /// Echo request. public readonly static int ECHO = 0x0800; /// router advertisement public readonly static int ROUTER_ADVERT = 0x0900; /// router solicitation public readonly static int ROUTER_SOLICIT = 0x0a00; /// time exceeded in transit. public readonly static int TIME_EXCEED_INTRANS = 0x0b00; /// time exceeded in reass. public readonly static int TIME_EXCEED_REASS = 0x0b01; /// ip header bad; option absent. public readonly static int PARAM_PROB = 0x0c01; /// timestamp request public readonly static int TSTAMP = 0x0d00; /// timestamp reply public readonly static int TSTAMP_REPLY = 0x0e00; /// information request public readonly static int IREQ = 0x0f00; /// information reply public readonly static int IREQ_REPLY = 0x1000; /// address mask request public readonly static int MASK_REQ = 0x1100; /// address mask reply public readonly static int MASK_REPLY = 0x1200; // marker indicating index of largest ICMP message type code public readonly static int LAST_MAJOR_CODE = 0x12; } public interface ICMPMessages { //UPGRADE_NOTE: Members of interface 'ICMPMessages' were extracted into structure 'ICMPMessages_Fields'. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1045'" } }