From: Roy Marples Date: Fri, 24 May 2013 09:08:23 +0000 (+0000) Subject: Comment on why we don't solicit dhcpv6 without an RA to instruct us. X-Git-Tag: v5.99.7~33 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7afd1fdfb0a1a3f87caa814e6506129affdf76c0;p=thirdparty%2Fdhcpcd.git Comment on why we don't solicit dhcpv6 without an RA to instruct us. --- diff --git a/dhcpcd.c b/dhcpcd.c index b0f0cbfc..8d042d4f 100644 --- 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);