Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
arping: Fix unsolicited ARP regressions on -c > 1
4db1de6 tried to fix a regression 1 sec delay due poll() for unsolicited ARP, .i.e. -A and -U (introduced in 67e070d, reported as issue iputils#536). But skipping the while loop entirely introduced another regression for -A and -U, which behave like -c1 (sending *always* only a single packet). Fixing it by checking in while loop and comparing also count (as it was done in 67e070d before the rewrite). NOTE: use exit_loop with continue instead of simple break to keep things consistent. Fixes: 4db1de6 ("arping: Fix 1s delay on exit for unsolicited arpings") Fixes: 67e070d ("arping: use signalfd() and timerfd() rather than signals") Fixes: iputils#536 Closes: iputils#543 Reported-by: David Bond <[email protected]> Reviewed-by: Andrea Cervesato <[email protected]> Reviewed-by: Cyril Hrubis <[email protected]> Signed-off-by: Petr Vorel <[email protected]>
- Loading branch information