From: Roy Marples Date: Sat, 5 Jul 2008 22:12:21 +0000 (+0000) Subject: Show the correct probe address. X-Git-Tag: v4.0.2~235 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3f489a9a4d460cec161bd285f99b8639df3b9f3e;p=thirdparty%2Fdhcpcd.git Show the correct probe address. --- diff --git a/client.c b/client.c index c24e8caf..631dd6bc 100644 --- a/client.c +++ b/client.c @@ -990,6 +990,7 @@ handle_timeout(struct if_state *state, const struct options *options) struct interface *iface = state->interface; int i; struct timeval tv; + struct in_addr addr; #ifdef ENABLE_ARP switch (state->state) { @@ -998,10 +999,12 @@ handle_timeout(struct if_state *state, const struct options *options) if (iface->arp_fd == -1) open_socket(iface, ETHERTYPE_ARP); if (state->probes < PROBE_NUM) { - if (state->probes == 0) + if (state->probes == 0) { + addr.s_addr = state->offer->yiaddr; logger(LOG_INFO, "checking %s is available" " on attached networks", - inet_ntoa(lease->addr)); + inet_ntoa(addr)); + } state->probes++; logger(LOG_DEBUG, "sending ARP probe #%d", state->probes);