]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Report more send_arp breakage.
authorRoy Marples <roy@marples.name>
Thu, 10 Jul 2008 15:36:19 +0000 (15:36 +0000)
committerRoy Marples <roy@marples.name>
Thu, 10 Jul 2008 15:36:19 +0000 (15:36 +0000)
client.c

index 346349a1ff63b5ad0821dfaaa9035431850e01bf..2f3941e90e87ebef3548134aa0b8f310062884e4 100644 (file)
--- 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))) {