nuttx-apps/system/ping
Shunchao Hu 02153debae system/ping: Fallback to ping6 for gethost error handling.
When ping only receives an IPv6 DNS response, the current command
reports "ping_gethostip" and exits even though ping6 can still
handle the target.

Keep the existing ping and ping6 netutils interfaces unchanged and
add a one-way fallback in the ping command. If IPv4 name resolution
fails, ping will spawn ping6 with the same arguments and let ping6
report the final result.

Signed-off-by: Shunchao Hu <ankohuu@gmail.com>
2026-05-19 09:56:01 +02:00
..
CMakeLists.txt system: migrate to SPDX identifier 2024-12-30 18:02:50 +08:00
Kconfig net/ping: utils ping should depends on ipv4 2025-12-25 12:24:30 +08:00
Make.defs system: migrate to SPDX identifier 2024-12-30 18:02:50 +08:00
Makefile system: migrate to SPDX identifier 2024-12-30 18:02:50 +08:00
ping.c system/ping: Fallback to ping6 for gethost error handling. 2026-05-19 09:56:01 +02:00