From a79cb97ff309b5ac7a1184ae484d2efdddd67a0c Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Thu, 10 Jul 2008 15:36:19 +0000 Subject: [PATCH] Report more send_arp breakage. --- client.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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))) { -- 2.47.3