]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Report errors sending ARP requests.
authorRoy Marples <roy@marples.name>
Thu, 10 Jul 2008 15:32:27 +0000 (15:32 +0000)
committerRoy Marples <roy@marples.name>
Thu, 10 Jul 2008 15:32:27 +0000 (15:32 +0000)
client.c

index 0a5d9f82231043f982559f3fee874b1c76a37d1f..346349a1ff63b5ad0821dfaaa9035431850e01bf 100644 (file)
--- 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