ping.h 397 B

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