iphlpapi: Implement IcmpSendEcho2Ex() using nsiproxy.
commit7156d2b1e4dd7be5ee6194c60afa6aafec8b2544
authorHuw Davies <huw@codeweavers.com>
Wed, 6 Oct 2021 09:12:58 +0000 (6 10:12 +0100)
committerAlexandre Julliard <julliard@winehq.org>
Wed, 6 Oct 2021 18:29:34 +0000 (6 20:29 +0200)
tree63aaf920896b0e1a4ef1b33d89c3adf3e922bd01
parent9d8abb1ee5eee8d71ec33501e0ff584475a8bddc
iphlpapi: Implement IcmpSendEcho2Ex() using nsiproxy.

This results in a small change in behaviour reflected by the change to
the tests: previously IcmpCreateFile() would fail if neither a
SOCK_RAW nor a SOCK_DGRAM socket were available.  With this patch, that
failure is delayed until IcmpSendEcho2Ex().  There's no evidence that
the original behaviour matches Windows; it's likely the tests were
written this way to match Wine's implementation.  If there does turn
out to be an app that depends on the old behaviour, it would be
possible to send an ioctl during IcmpCreateFile() to probe for this.

Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
dlls/iphlpapi/Makefile.in
dlls/iphlpapi/icmp.c [deleted file]
dlls/iphlpapi/ip.h [deleted file]
dlls/iphlpapi/ip_icmp.h [deleted file]
dlls/iphlpapi/iphlpapi_main.c
dlls/iphlpapi/tests/iphlpapi.c