From: Roy Marples Date: Thu, 10 Jul 2008 15:32:27 +0000 (+0000) Subject: Report errors sending ARP requests. X-Git-Tag: v4.0.2~210 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3837265a409ba456e4e69da7a4803210cba32aea;p=thirdparty%2Fdhcpcd.git Report errors sending ARP requests. --- diff --git a/client.c b/client.c index 0a5d9f82..346349a1 100644 --- a/client.c +++ b/client.c @@ -1065,7 +1065,9 @@ handle_timeout(struct if_state *state, const struct options *options) tv.tv_sec = ANNOUNCE_WAIT; get_time(&state->timeout); timeradd(&state->timeout, &tv, &state->timeout); - send_arp(iface, ARPOP_REQUEST, 0, state->offer->yiaddr); + i = send_arp(iface, ARPOP_REQUEST, 0, state->offer->yiaddr); + if (i == -1) + logger(LOG_ERR, "send_arp: %s", strerror(errno)); return 0; } else { /* We've waited for ANNOUNCE_WAIT after the final probe