]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Dumping leases should not change kernel IPv6 setup.
authorRoy Marples <roy@marples.name>
Wed, 1 Apr 2015 22:02:34 +0000 (22:02 +0000)
committerRoy Marples <roy@marples.name>
Wed, 1 Apr 2015 22:02:34 +0000 (22:02 +0000)
dhcpcd.c

index 0ce32dc260c4397081a8956566f7853dc855895e..2d60a892ca87cde9f34cc5c2902cb212aa0fa8a6 100644 (file)
--- a/dhcpcd.c
+++ b/dhcpcd.c
@@ -386,7 +386,9 @@ configure_interface1(struct interface *ifp)
                ifp->options->options &= ~(DHCPCD_IPV4 | DHCPCD_IPV6RS);
 
        /* We want to disable kernel interface RA as early as possible. */
-       if (ifo->options & DHCPCD_IPV6RS) {
+       if (ifo->options & DHCPCD_IPV6RS &&
+           !(ifo->options & DHCPCD_DUMPLEASE))
+       {
                /* If not doing any DHCP, disable the RDNSS requirement. */
                if (!(ifo->options & (DHCPCD_DHCP | DHCPCD_DHCP6)))
                        ifo->options &= ~DHCPCD_IPV6RA_REQRDNSS;
@@ -397,7 +399,7 @@ configure_interface1(struct interface *ifp)
                if (ra_global == -1 || ra_iface == -1)
                        ifo->options &= ~DHCPCD_IPV6RS;
                else if (ra_iface == 0 &&
-                   !(ifp->ctx->options & (DHCPCD_DUMPLEASE | DHCPCD_TEST)))
+                   !(ifp->ctx->options & DHCPCD_TEST))
                        ifo->options |= DHCPCD_IPV6RA_OWN;
        }