summaryrefslogtreecommitdiffstats
path: root/dhcpcd.c
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2013-05-24 09:08:23 +0000
committerRoy Marples <roy@marples.name>2013-05-24 09:08:23 +0000
commit7afd1fdfb0a1a3f87caa814e6506129affdf76c0 (patch)
tree1da4792664403517fa238e1c5d1779f71d8aadf9 /dhcpcd.c
parentd2aef5a270342182524a2f30871e4d01b059ba9b (diff)
downloaddhcpcd-7afd1fdfb0a1a3f87caa814e6506129affdf76c0.tar.xz
Comment on why we don't solicit dhcpv6 without an RA to instruct us.
Diffstat (limited to 'dhcpcd.c')
-rw-r--r--dhcpcd.c18
1 files changed, 16 insertions, 2 deletions
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);