diff src/ipv6.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
line wrap: on
line diff
--- a/src/ipv6.c	Wed Nov 04 11:31:40 2020 +1300
+++ b/src/ipv6.c	Wed Nov 04 14:18:48 2020 +0000
@@ -1416,6 +1416,9 @@
 	struct ipv6_addr *ap, *ap2;
 	int dadcounter;
 
+	if (!(ifp->options->options & DHCPCD_CONFIGURE))
+		return 0;
+
 	/* Check sanity before malloc */
 	if (!(ifp->options->options & DHCPCD_SLAACPRIVATE)) {
 		switch (ifp->hwtype) {