]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Comment on why we don't solicit dhcpv6 without an RA to instruct us.
authorRoy Marples <roy@marples.name>
Fri, 24 May 2013 09:08:23 +0000 (09:08 +0000)
committerRoy Marples <roy@marples.name>
Fri, 24 May 2013 09:08:23 +0000 (09:08 +0000)
dhcpcd.c

index b0f0cbfcd3ea39a58b379713240c9df927969193..8d042d4fe22b0379f83ffa9c13e263c12ba42bc9 100644 (file)
--- a/dhcpcd.c
+++ b/dhcpcd.c
@@ -426,8 +426,22 @@ start_interface(void *arg)
                if (!(ifo->options & DHCPCD_IPV6RS)) {
                        if (ifo->options & DHCPCD_IA_FORCED)
                                nolease = dhcp6_start(ifp, 1);
-                       else
-                               nolease = dhcp6_find_delegates(ifp);;
+                       else {
+                               nolease = dhcp6_find_delegates(ifp);
+                               /* Enabling the below doesn't really make
+                                * sense as there is currently no standard
+                                * to push routes via DHCPv6.
+                                * (There is an expired working draft,
+                                * maybe abandoned?)
+                                * You can also get it to work by forcing
+                                * an IA as shown above. */
+#if 0
+                               /* With no RS or delegates we might
+                                * as well try and solicit a DHCPv6 address */
+                               if (nolease == 0)
+                                       nolease = dhcp6_start(ifp, 1);
+#endif
+                       }
                        if (nolease == -1)
                                syslog(LOG_ERR,
                                    "%s: dhcp6_start: %m", ifp->name);