From bb2d4d31e2dab11025ae93ebcebc818c36a9747f Mon Sep 17 00:00:00 2001 From: Bjørn Mork Date: Fri, 15 May 2015 10:25:10 +0200 Subject: ripe-atlas-fw: imported version 4560 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Bjørn Mork --- eperd/ping.c | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) (limited to 'eperd') diff --git a/eperd/ping.c b/eperd/ping.c index 31d75c1..bf51019 100644 --- a/eperd/ping.c +++ b/eperd/ping.c @@ -548,9 +548,6 @@ static void ping_xmit(struct pingstate *host) if (host->base->done) host->base->done(host); - /* Fake packet sent to kill timer */ - host->sentpkts++; - return; } @@ -631,6 +628,10 @@ static void ping_xmit(struct pingstate *host) errno, 0, NULL, host); } + + + /* Add the timer to handle no reply condition in the given timeout */ + evtimer_add(&host->ping_timer, &host->base->tv_interval); } @@ -652,11 +653,6 @@ static void noreply_callback(int __attribute((unused)) unused, const short __att } ping_xmit(host); - - if (host->sentpkts <= host->maxpkts) - { - evtimer_add(&host->ping_timer, &host->base->tv_interval); - } } /* @@ -1140,9 +1136,6 @@ static void ping_start2(void *state) pingstate->cursize= pingstate->maxsize; ping_xmit(pingstate); - - /* Add the timer to handle no reply condition in the given timeout */ - evtimer_add(&pingstate->ping_timer, &pingstate->base->tv_interval); } static void dns_cb(int result, struct evutil_addrinfo *res, void *ctx) -- cgit v1.2.3