ICMP_ERROR_INFO structure (ws2ipdef.h)

Used to store received ICMP error information.

Syntax

typedef struct icmp_error_info {
  SOCKADDR_INET srcaddress;
  IPPROTO       protocol;
  UINT8         type;
  UINT8         code;
} ICMP_ERROR_INFO, *PICMP_ERROR_INFO;

Members

srcaddress

Type: SOCKADDR_INET

The source IP address of the ICMP error.

protocol

Type: IPPROTO

The protocol of the ICMP error (either IPPROTO_ICMP or IPPROTO_ICMPV6).

type

Type: UINT8

The ICMP error type.

code

Type: UINT8

The ICMP error code.

Requirements

Requirement Value
Minimum supported client Windows 10, version 2004 (10.0; Build 19041)
Minimum supported server Windows Server, version 2004 (10.0; Build 19041)
Header ws2ipdef.h (include ws2tcpip.h)