changeset 5342:7f58d95585d1 draft dhcpcd-8

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.
author Roy Marples <roy@marples.name>
date Wed, 10 Jun 2020 07:34:18 +0100
parents d1816cb6e86b
children da781e97946d
files src/dhcpcd.c
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/dhcpcd.c	Wed Apr 29 14:55:23 2020 +0100
+++ b/src/dhcpcd.c	Wed Jun 10 07:34:18 2020 +0100
@@ -929,9 +929,12 @@
 		}
 
 #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;