ICMP4_TYPE enumeration

The ICMP4_TYPE enumeration defines the set of Internet Control Message Protocol (ICMP) for IP version 4.0 (IPv4) message types.

Syntax


typedef enum  { 
  ICMP4_ECHO_REPLY         = 0,
  ICMP4_DST_UNREACH        = 3,
  ICMP4_SOURCE_QUENCH      = 4,
  ICMP4_REDIRECT           = 5,
  ICMP4_ECHO_REQUEST       = 8,
  ICMP4_ROUTER_ADVERT      = 9,
  ICMP4_ROUTER_SOLICIT     = 10,
  ICMP4_TIME_EXCEEDED      = 11,
  ICMP4_PARAM_PROB         = 12,
  ICMP4_TIMESTAMP_REQUEST  = 13,
  ICMP4_TIMESTAMP_REPLY    = 14,
  ICMP4_MASK_REQUEST       = 17,
  ICMP4_MASK_REPLY         = 18
} ICMP4_TYPE, *PICMP4_TYPE;

Constants

ICMP4_ECHO_REPLY

ICMP echo reply message.

ICMP4_DST_UNREACH

The specified destination for the message is unreachable.

ICMP4_SOURCE_QUENCH

ICMP source quench message.

ICMP4_REDIRECT

ICMP redirection message.

ICMP4_ECHO_REQUEST

ICMP echo redirection message.

ICMP4_ROUTER_ADVERT

ICMP router advertisement message.

ICMP4_ROUTER_SOLICIT

ICMP router solicitation message.

ICMP4_TIME_EXCEEDED

The ICMPv6 message has timed out.

ICMP4_PARAM_PROB

The IPv4 header is malformed or contains an incorrect value.

ICMP4_TIMESTAMP_REQUEST

ICMP timestamp request message.

ICMP4_TIMESTAMP_REPLY

ICMP timestamp reply message.

ICMP4_MASK_REQUEST

ICMP mask request message.

ICMP4_MASK_REPLY

ICMP mask reply message.

Remarks

On the Microsoft Windows Software Development Kit (SDK) released for Windows Vista and later, the organization of header files has changed and the ICMP4_TYPE enumeration is defined in the Ipmib.h header file not in the Iprtrmib.h header file. Note that the Ipmib.h header file is automatically included in Iprtrmib.h which is automatically included in the Iphlpapi.h header file. The Ipmib.h and Iprtrmib.h header files should never be used directly.

Requirements

Minimum supported client

Windows Vista, Windows XP with SP2 [desktop apps only]

Minimum supported server

Windows Server 2008, Windows Server 2003 with SP1 [desktop apps only]

Header

Ipmib.h on Windows Server 2008 and Windows Vista (include Iphlpapi.h);
Iprtrmib.h on Windows Server 2003 with SP1 and Windows XP with SP2 (include Iphlpapi.h)

 

 

Community Additions

ADD
Show: