From fd89f4f825947c62965905d04b3bccfe82ca0bb0 Mon Sep 17 00:00:00 2001 From: Stefan Lankes Date: Tue, 21 Jun 2011 23:18:10 -0700 Subject: [PATCH] use the socket version of ping, if this feature is enabled in LwIP --- kernel/ping.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/kernel/ping.c b/kernel/ping.c index 4a02ff0e..98398300 100644 --- a/kernel/ping.c +++ b/kernel/ping.c @@ -53,6 +53,10 @@ #include #include +#if LWIP_SOCKET +#define PING_USE_SOCKETS 1 +#endif + #if PING_USE_SOCKETS #include #include @@ -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 */