ICMP_ECHO_REPLY structure (ipexport.h)
The ICMP_ECHO_REPLY structure describes the data returned in response to an IPv4 echo request.
Syntax
typedef struct icmp_echo_reply {
IPAddr Address;
ULONG Status;
ULONG RoundTripTime;
USHORT DataSize;
USHORT Reserved;
PVOID Data;
struct ip_option_information Options;
} ICMP_ECHO_REPLY, *PICMP_ECHO_REPLY;
Members
Address
Type: IPAddr
The replying IPv4 address, in the form of an IPAddr structure.
Status
Type: ULONG
The status of the echo request, in the form of an IP_STATUS code. The possible values for this member are defined in the Ipexport.h header file.
RoundTripTime
Type: ULONG
The round trip time, in milliseconds.
DataSize
Type: USHORT
The data size, in bytes, of the reply.
Reserved
Type: USHORT
Reserved for system use.
Data
Type: PVOID
A pointer to the reply data.
Options
Type: struct ip_option_information
The IP options in the IP header of the reply, in the form of an IP_OPTION_INFORMATION structure.
Remarks
The ICMP_ECHO_REPLY structure is used by the IcmpParseReplies function to return the response to an IPv4 echo request. On a 64-bit platform, the ICMP_ECHO_REPLY32 structure should be used.
For IPv4, some of the possible values for the Status member are specified in RFC 792.
The GetIpErrorString function can be used to retrieve the IP helper error string for the IP_STATUS error code in the Status member.
The ICMP_ECHO_REPLY structure is defined in the Ipexport.h header file which is automatically included in the Iphlpapi.h header file. The Ipexport.h header file should never be used directly.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 2000 Professional [desktop apps only] |
Minimum supported server | Windows 2000 Server [desktop apps only] |
Header | ipexport.h (include Iphlpapi.h) |