use the socket version of ping, if this feature is enabled in LwIP

This commit is contained in:
Stefan Lankes 2011-06-21 23:18:10 -07:00
parent b68e9051cb
commit fd89f4f825

View file

@ -53,6 +53,10 @@
#include <lwip/timers.h>
#include <lwip/inet_chksum.h>
#if LWIP_SOCKET
#define PING_USE_SOCKETS 1
#endif
#if PING_USE_SOCKETS
#include <lwip/sockets.h>
#include <lwip/inet.h>
@ -68,7 +72,7 @@
/** ping target - should be a "ip_addr_t" */
#ifndef PING_TARGET
#define PING_TARGET (netif_default?netif_default->gw:ip_addr_any)
#define PING_TARGET (netif_default?netif_default->gw:ip_addr_any)
#endif
/** ping receive timeout - in milliseconds */