[IPHLPAPI] Fix IcmpSendEcho output when host is not reachable
authorStanislav Motylkov <x86corez@gmail.com>
Tue, 23 Jan 2018 21:28:55 +0000 (00:28 +0300)
committerGed Murphy <gedmurphy@reactos.org>
Wed, 31 Jan 2018 17:28:21 +0000 (17:28 +0000)
commit63ad8a71c03cddea9e4d3f14243230d01da75087
tree165d018057ccc822df602b8a074ff541f81014f0
parent3624c5d6fd2cf1c589c26f75ac2d6054f7a838a0
[IPHLPAPI] Fix IcmpSendEcho output when host is not reachable

- Add missing error code to DDK/NDIS
- Fix error code in IP driver
- Patch MSAFD to reply correct WSA error code
- Fix IcmpSendEcho function
  - Fix returning error code in ICMP_ECHO_REPLY (see MSDN)
  - Fix returning host address (using GetBestInterface and GetIpAddrTable functions)
- Fix GetBestRoute function (it is used by GetBestInterface)

Relates to #318 and CORE-14241
dll/win32/iphlpapi/icmp.c
dll/win32/iphlpapi/iphlpapi_main.c
dll/win32/msafd/misc/dllmain.c
sdk/include/ddk/ndis.h
sdk/lib/drivers/ip/network/neighbor.c