From: Roy Marples Date: Fri, 7 Dec 2012 09:46:49 +0000 (+0000) Subject: Log error whe starting DHCPv6 without RA. X-Git-Tag: v5.99.3~4 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3083087ccb911b18fb5605f8e398d8aecd14cd1c;p=thirdparty%2Fdhcpcd.git Log error whe starting DHCPv6 without RA. --- diff --git a/dhcpcd.c b/dhcpcd.c index 2c8ffd10..27665e3a 100644 --- a/dhcpcd.c +++ b/dhcpcd.c @@ -1225,9 +1225,13 @@ start_interface(void *arg) if (ifo->options & DHCPCD_IPV6) { if (ifo->options & DHCPCD_INFORM) - dhcp6_start(iface, 0); + nolease = dhcp6_start(iface, 0); else if (!(ifo->options & DHCPCD_IPV6RS)) - dhcp6_start(iface, 1); + nolease = dhcp6_start(iface, 1); + else + nolease = 0; + if (nolease == -1) + syslog(LOG_ERR, "%s: dhcp6_start: %m", iface->name); } if (!(ifo->options & DHCPCD_IPV4))