Files
xiuos/Ubiquitous/XiUOS/resources/ethernet/cmd_lwip/ping.h
T
wlyu 877ef9e221 1. fixed IRQ interrupt
2. changed lwip test command
3. merge dns and ping command
4. change test to cmd_lwip
2022-01-07 13:56:54 +08:00

22 lines
403 B
C
Executable File

#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 */
int get_url_ip(char* url);
#endif /* LWIP_PING_H */