diff options
Diffstat (limited to 'arping.c')
-rw-r--r-- | arping.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -764,7 +764,8 @@ static int event_loop(struct run_state *ctl) continue; } total_expires += exp; - if (0 < ctl->count && (uint64_t)ctl->count < total_expires) { + if ((0 < ctl->count && (uint64_t)ctl->count < total_expires) || + (ctl->quit_on_reply && ctl->timeout < total_expires)) { exit_loop = 1; continue; } |