From: Roy Marples Date: Fri, 25 Mar 2011 20:19:03 +0000 (+0000) Subject: When requesting an address, note this in the broadcasting message. X-Git-Tag: v5.2.12~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ba2c29b403651ddaf2369e10e06e212b1e9eb9ea;p=thirdparty%2Fdhcpcd.git When requesting an address, note this in the broadcasting message. --- diff --git a/dhcpcd.c b/dhcpcd.c index 6e9305fd..9414b980 100644 --- a/dhcpcd.c +++ b/dhcpcd.c @@ -929,7 +929,11 @@ start_discover(void *arg) else add_timeout_sec(ifo->timeout, start_ipv4ll, iface); } - syslog(LOG_INFO, "%s: broadcasting for a lease", iface->name); + if (ifo->options & DHCPCD_REQUEST) + syslog(LOG_INFO, "%s: broadcasting for a lease (requesting %s)", + iface->name, inet_ntoa(ifo->req_addr)); + else + syslog(LOG_INFO, "%s: broadcasting for a lease", iface->name); send_discover(iface); }