contrib/apps/ping/ping.h
raw| 1 | #ifndef LWIP_PING_H |
| 2 | #define LWIP_PING_H |
| 3 | |
| 4 | #include "lwip/ip_addr.h" |
| 5 | |
| 6 | /** |
| 7 | * PING_USE_SOCKETS: Set to 1 to use sockets, otherwise the raw api is used |
| 8 | */ |
| 9 | #ifndef PING_USE_SOCKETS |
| 10 | #define PING_USE_SOCKETS LWIP_SOCKET |
| 11 | #endif |
| 12 | |
| 13 | void ping_init(const ip_addr_t* ping_addr); |
| 14 | void ping_stop(void); |
| 15 | |
| 16 | #if !PING_USE_SOCKETS |
| 17 | void ping_send_now(void); |
| 18 | #endif /* !PING_USE_SOCKETS */ |
| 19 | |
| 20 | #endif /* LWIP_PING_H */ |