From: Roy Marples Date: Thu, 10 Jul 2008 15:36:19 +0000 (+0000) Subject: Report more send_arp breakage. X-Git-Tag: v4.0.2~209 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a79cb97ff309b5ac7a1184ae484d2efdddd67a0c;p=thirdparty%2Fdhcpcd.git Report more send_arp breakage. --- diff --git a/client.c b/client.c index 346349a1..2f3941e9 100644 --- a/client.c +++ b/client.c @@ -1086,8 +1086,10 @@ handle_timeout(struct if_state *state, const struct options *options) state->claims++; logger(LOG_DEBUG, "sending ARP announce #%d", state->claims); - send_arp(iface, ARPOP_REQUEST, - state->new->yiaddr, state->new->yiaddr); + i = send_arp(iface, ARPOP_REQUEST, + state->new->yiaddr, state->new->yiaddr); + if (i == -1) + logger(LOG_ERR, "send_arp: %s", strerror(errno)); if (state->claims < ANNOUNCE_NUM) tv.tv_sec = ANNOUNCE_INTERVAL; else if (IN_LINKLOCAL(htonl(lease->addr.s_addr))) {