]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
DHCP6: Apply delegations to interface on carrier up
authorRoy Marples <roy@marples.name>
Wed, 10 Jun 2020 06:34:18 +0000 (07:34 +0100)
committerRoy Marples <roy@marples.name>
Wed, 10 Jun 2020 06:34:18 +0000 (07:34 +0100)
Even with DHCP6 turned off for the interface.
As long as it was activated by another interface this is fine.

src/dhcpcd.c

index 0ccfe8ac016f7abeee88d79e98d2c3503f2ada90..e6ff276623c310af5ecae7b98f1a94af200f5a1c 100644 (file)
@@ -943,9 +943,12 @@ dhcpcd_startinterface(void *arg)
                }
 
 #ifdef DHCP6
-               if (ifo->options & DHCPCD_DHCP6) {
+               /* DHCPv6 could be turned off, but the interface
+                * is still delegated to. */
+               if (ifp->active)
                        dhcp6_find_delegates(ifp);
 
+               if (ifo->options & DHCPCD_DHCP6) {
                        if (ifp->active == IF_ACTIVE_USER) {
                                enum DH6S d6_state;