nuttx-apps/netutils/ping
meijian a7cffe03b5 [ping] fix ping early return when ping is interrupted by ifdown
During a long ping, the tester will repeatedly switch the dev interface on and off.
When the interface is down and ping is in sendto sem_wait state,ifdown will trigger event of sendto and post sem.
in func of sendto_eventhandler:
if ((flags & NETDEV_DOWN) != 0)
{
  nerr("ERROR: Interface is down\n");
  pstate->snd_result = -ENETUNREACH;
  goto end_wait;
}

Signed-off-by: meijian <meijian@xiaomi.com>
2024-04-22 23:03:39 +02:00
..
CMakeLists.txt add initial cmake build system 2023-07-08 13:52:02 +08:00
icmp_ping.c [ping] fix ping early return when ping is interrupted by ifdown 2024-04-22 23:03:39 +02:00
icmpv6_ping.c apps/ping: fix ping statistics error problem 2022-04-25 22:12:42 +08:00
Kconfig netutils/ping/Kconfig: Fix Kconfig style 2023-05-18 00:38:54 +08:00
Make.defs Make.defs: Change "ifeq ($(XXX),y)" to "ifneq ($(XXX),) 2022-10-16 14:59:08 +02:00
Makefile Makefiles: Gregory Nutt: update licenses to Apache 2021-06-07 21:35:33 -05:00