Mercurial > hg > dhcpcd
changeset 2847:f11b66195310 draft
Log which IP address we are ARPing
| author | Roy Marples <roy@marples.name> |
|---|---|
| date | Sun, 16 Nov 2014 18:42:01 +0000 |
| parents | 8ac6ab596fb0 |
| children | 7caa067c69b7 |
| files | arp.c |
| diffstat | 1 files changed, 9 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/arp.c Fri Nov 14 11:45:09 2014 +0000 +++ b/arp.c Sun Nov 16 18:42:01 2014 +0000 @@ -214,13 +214,15 @@ 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 @@ 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");
