mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-08-01 20:29:00 +00:00
apps/net: add ip address connectivity check API
The system checks connectivity with the input IP address; if no IP address is provided, it defaults to checking DNS server connectivity. Signed-off-by: meijian <meijian@xiaomi.com>
This commit is contained in:
parent
150c5756a0
commit
3467f9b82d
4 changed files with 147 additions and 0 deletions
|
|
@ -513,6 +513,10 @@ int netlib_getifstatistics(FAR const char *ifname,
|
|||
int netlib_check_ifconflict(FAR const char *ifname);
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_NETUTILS_PING
|
||||
int netlib_check_ipconnectivity(FAR const char *ip, int timeout, int retry);
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_MM_IOB
|
||||
int netlib_get_iobinfo(FAR struct iob_stats_s *iob);
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue