meijian c0c9a6007c [ping] fix ping early return when ping is interrupted by ifdown and poll return
During a long ping, the tester will repeatedly switch the dev interface on and off.
When the interface is down and ping is in poll sem_wait state,ifdown will trigger event of poll and post sem.
The poll will return and revent is 0x18 POLLHUP | POLLERR.Then recvfrom will process and return error to stop ping.
if ((flags & NETDEV_DOWN) != 0)
{
  eventset |= (POLLHUP | POLLERR);
}

Signed-off-by: meijian <meijian@xiaomi.com>
2024-04-22 23:03:39 +02:00
..
2023-07-08 13:52:02 +08:00
2023-09-01 01:21:54 +08:00
2023-09-08 02:11:23 +08:00
2023-07-08 13:52:02 +08:00
2023-07-13 15:52:36 +08:00
2024-01-06 04:32:41 -08:00
2023-07-08 13:52:02 +08:00
2023-09-01 23:21:34 +08:00
2024-04-18 09:56:48 +08:00
2023-12-07 18:26:39 -08:00
2024-04-18 09:56:48 +08:00
2023-07-08 13:52:02 +08:00
2023-07-08 13:52:02 +08:00
2023-09-11 16:37:05 +08:00
2023-07-08 13:52:02 +08:00
2023-08-01 23:10:32 -07:00
2023-07-08 13:52:02 +08:00
2023-07-08 13:52:02 +08:00