diff src/ipv6nd.c @ 5535:a0d828e25482 draft

Add --noconfigure option With this set dhcpcd will not configure anything on the host. The expectation is that a 3rd party script will instead.
author Roy Marples <roy@marples.name>
date Wed, 04 Nov 2020 14:18:48 +0000
parents 6a2da5651841
children e65d193a1960
line wrap: on
line diff
--- a/src/ipv6nd.c	Wed Nov 04 11:31:40 2020 +1300
+++ b/src/ipv6nd.c	Wed Nov 04 14:18:48 2020 +0000
@@ -1494,13 +1494,18 @@
 		script_runreason(ifp, "TEST");
 		goto handle_flag;
 	}
+
+	if (!(ifp->options->options & DHCPCD_CONFIGURE))
+		goto run;
+
 	ipv6nd_applyra(ifp);
 	ipv6_addaddrs(&rap->addrs);
 #ifdef IPV6_MANAGETEMPADDR
 	ipv6_addtempaddrs(ifp, &rap->acquired);
 #endif
+	rt_build(ifp->ctx, AF_INET6);
 
-	rt_build(ifp->ctx, AF_INET6);
+run:
 	ipv6nd_scriptrun(rap);
 
 	eloop_timeout_delete(ifp->ctx->eloop, NULL, ifp);