From c8b93430d47557c6a0781ed3fe6bf4af909adef6 Mon Sep 17 00:00:00 2001 From: David Quintana Date: Thu, 4 Jan 2018 18:21:16 +0100 Subject: [PATCH] [PSDK] Add ICMP_ECHO_REPLY32 needed by 64-bit code. Fixes x64 build of tracert. --- sdk/include/psdk/ipexport.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/sdk/include/psdk/ipexport.h b/sdk/include/psdk/ipexport.h index 01a1185c202..906bbb0edf6 100644 --- a/sdk/include/psdk/ipexport.h +++ b/sdk/include/psdk/ipexport.h @@ -66,6 +66,21 @@ typedef struct ip_option_information IP_OPTION_INFORMATION, *PIP_OPTION_INFORMAT typedef struct icmp_echo_reply ICMP_ECHO_REPLY, *PICMP_ECHO_REPLY; +#if _WIN64 +struct icmp_echo_reply32 +{ + IPAddr Address; + ULONG Status; + ULONG RoundTripTime; + unsigned short DataSize; + unsigned short Reserved; + void* POINTER_32 Data; + struct ip_option_information Options; +}; + +typedef struct icmp_echo_reply32 ICMP_ECHO_REPLY32, *PICMP_ECHO_REPLY32; +#endif + #define IP_STATUS_BASE 11000