]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
ipv6: disable kernel RA if interface is active
authorRoy Marples <roy@marples.name>
Tue, 12 Dec 2017 13:38:43 +0000 (13:38 +0000)
committerRoy Marples <roy@marples.name>
Tue, 12 Dec 2017 13:38:43 +0000 (13:38 +0000)
src/dhcpcd.c

index 6ce077f7e9780dbdfa529b1621a9b285ed5c883f..d29cc5084ceff3a1e0e3ce5650b9075d61001c67 100644 (file)
@@ -438,7 +438,7 @@ configure_interface1(struct interface *ifp)
                    ~(DHCPCD_IPV6RS | DHCPCD_DHCP6 | DHCPCD_WAITIP6);
 
        /* We want to disable kernel interface RA as early as possible. */
-       if (ifo->options & DHCPCD_IPV6RS &&
+       if (ifp->active == IF_ACTIVE_USER &&
            !(ifp->ctx->options & DHCPCD_DUMPLEASE))
        {
                int ra_global, ra_iface;