]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Log error whe starting DHCPv6 without RA.
authorRoy Marples <roy@marples.name>
Fri, 7 Dec 2012 09:46:49 +0000 (09:46 +0000)
committerRoy Marples <roy@marples.name>
Fri, 7 Dec 2012 09:46:49 +0000 (09:46 +0000)
dhcpcd.c

index 2c8ffd103a863626a39052256c9c27d42ff08501..27665e3a36ac229a37439fa315040e08d5c88e8a 100644 (file)
--- 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))