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). Fixes: 4db1de6 ("arping: Fix 1s delay on exit for unsolicited arpings") Fixes: 67e070d ("arping: use signalfd() and timerfd() rather than signals") Fixes: iputils#536 Reported-by: David Bond <dbond@suse.com> Reviewed-by: Andrea Cervesato <andrea.cervesato@suse.com> Signed-off-by: Petr Vorel <pvorel@suse.cz>
- Loading branch information