From: Roy Marples Date: Sun, 16 Nov 2014 18:42:01 +0000 (+0000) Subject: Log which IP address we are ARPing X-Git-Tag: v6.6.3~20 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b90923996fc2ff71c15a64e88a943a701d8e2e28;p=thirdparty%2Fdhcpcd.git Log which IP address we are ARPing --- diff --git a/arp.c b/arp.c index 4893fd25..86274a6d 100644 --- a/arp.c +++ b/arp.c @@ -214,13 +214,15 @@ arp_announce1(void *arg) if (++astate->claims < ANNOUNCE_NUM) syslog(LOG_DEBUG, - "%s: sending ARP announce (%d of %d), " + "%s: ARP announcing %s (%d of %d), " "next in %d.0 seconds", - ifp->name, astate->claims, ANNOUNCE_NUM, ANNOUNCE_WAIT); + ifp->name, inet_ntoa(astate->addr), + astate->claims, ANNOUNCE_NUM, ANNOUNCE_WAIT); else syslog(LOG_DEBUG, - "%s: sending ARP announce (%d of %d)", - ifp->name, astate->claims, ANNOUNCE_NUM); + "%s: ARP announcing %s (%d of %d)", + ifp->name, inet_ntoa(astate->addr), + astate->claims, ANNOUNCE_NUM); if (arp_send(ifp, ARPOP_REQUEST, astate->addr.s_addr, astate->addr.s_addr) == -1) syslog(LOG_ERR, "send_arp: %m"); @@ -265,8 +267,9 @@ arp_probe1(void *arg) eloop_timeout_add_tv(ifp->ctx->eloop, &tv, arp_probed, astate); } syslog(LOG_DEBUG, - "%s: sending ARP probe (%d of %d), next in %0.1f seconds", - ifp->name, astate->probes ? astate->probes : PROBE_NUM, PROBE_NUM, + "%s: ARP probing %s (%d of %d), next in %0.1f seconds", + ifp->name, inet_ntoa(astate->addr), + astate->probes ? astate->probes : PROBE_NUM, PROBE_NUM, timeval_to_double(&tv)); if (arp_send(ifp, ARPOP_REQUEST, 0, astate->addr.s_addr) == -1) syslog(LOG_ERR, "send_arp: %m");