diff options
Diffstat (limited to 'contrib/apps/ping/ping.h')
-rw-r--r-- | contrib/apps/ping/ping.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/contrib/apps/ping/ping.h b/contrib/apps/ping/ping.h new file mode 100644 index 00000000000..1f21c7b0997 --- /dev/null +++ b/contrib/apps/ping/ping.h @@ -0,0 +1,19 @@ +#ifndef LWIP_PING_H +#define LWIP_PING_H + +#include "lwip/ip_addr.h" + +/** + * PING_USE_SOCKETS: Set to 1 to use sockets, otherwise the raw api is used + */ +#ifndef PING_USE_SOCKETS +#define PING_USE_SOCKETS LWIP_SOCKET +#endif + +void ping_init(const ip_addr_t* ping_addr); + +#if !PING_USE_SOCKETS +void ping_send_now(void); +#endif /* !PING_USE_SOCKETS */ + +#endif /* LWIP_PING_H */ |