From: Roy Marples Date: Wed, 22 Jan 2020 16:32:09 +0000 (+0000) Subject: ARP: Fix defend time check X-Git-Tag: v9.0.0~83 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ae46ddb6423ac5e4c81ce3f935cf2e681f25c1e2;p=thirdparty%2Fdhcpcd.git ARP: Fix defend time check --- diff --git a/src/arp.c b/src/arp.c index 32d59665..72e0f7b6 100644 --- a/src/arp.c +++ b/src/arp.c @@ -165,7 +165,7 @@ arp_found(struct arp_state *astate, const struct arp_msg *amsg) * then we must drop our address and negotiate a new one. */ clock_gettime(CLOCK_MONOTONIC, &now); if (timespecisset(&astate->defend) && - eloop_timespec_diff(&astate->defend, &now, NULL) < DEFEND_INTERVAL) + eloop_timespec_diff(&now, &astate->defend, NULL) < DEFEND_INTERVAL) logwarnx("%s: %d second defence failed for %s", ifp->name, DEFEND_INTERVAL, inet_ntoa(astate->addr)); else if (arp_request(ifp, &astate->addr, &astate->addr) == -1)