From: Roy Marples Date: Wed, 10 Jun 2020 06:34:18 +0000 (+0100) Subject: DHCP6: Apply delegations to interface on carrier up X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8a0eb8db023be32c112847582446be48ee34dbf0;p=thirdparty%2Fdhcpcd.git DHCP6: Apply delegations to interface on carrier up Even with DHCP6 turned off for the interface. As long as it was activated by another interface this is fine. --- diff --git a/src/dhcpcd.c b/src/dhcpcd.c index 581050e0..6daa7c4f 100644 --- a/src/dhcpcd.c +++ b/src/dhcpcd.c @@ -929,9 +929,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;