Share via


ICMP_ERROR_INFO-Struktur (ws2ipdef.h)

Dient zum Speichern empfangener ICMP-Fehlerinformationen.

Syntax

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

Member

srcaddress

Typ: SOCKADDR_INET

Die Quell-IP-Adresse des ICMP-Fehlers.

protocol

Typ: IPPROTO

Das Protokoll des ICMP-Fehlers ( entweder IPPROTO_ICMP oder IPPROTO_ICMPV6).

type

Typ: UINT8

Der ICMP-Fehlertyp.

code

Typ: UINT8

Der ICMP-Fehlercode.

Anforderungen

Anforderung Wert
Unterstützte Mindestversion (Client) Windows 10, Version 2004 (10.0; Build 19041)
Unterstützte Mindestversion (Server) Windows Server, Version 2004 (10.0; Build 19041)
Kopfzeile ws2ipdef.h (include ws2tcpip.h)