use the socket version of ping, if this feature is enabled in LwIP
This commit is contained in:
parent
b68e9051cb
commit
fd89f4f825
1 changed files with 5 additions and 1 deletions
|
@ -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 */
|
||||
|
|
Loading…
Add table
Reference in a new issue