dhcpcd-discuss

OpenBSD, autoconf6 flag always cleared?

Stuart Henderson

Mon Jan 29 13:02:25 2018

Happy birthday :)

I had a report that dhcpcd >=7 was clearing the autoconf6 flag on an
interface even when dhcpcd wasn't managing rs itself on that interface.
I think this must have changed when the "own" handling was removed.

Does this look right or am I missing something?  Thanks!


Index: src/if-bsd.c
--- src/if-bsd.c.orig
+++ src/if-bsd.c
@@ -1358,7 +1358,8 @@ set_ifxflags(int s, const struct interface *ifp)
 #ifdef IFXF_NOINET6
 	flags &= ~IFXF_NOINET6;
 #endif
-	if (!(ifp->ctx->options & DHCPCD_TEST))
+	if (!(ifp->ctx->options & DHCPCD_TEST) &&
+	    (ifp->ctx->options & DHCPCD_IPV6RS))
 		flags &= ~IFXF_AUTOCONF6;
 	if (ifr.ifr_flags == flags)
 		return 0;


Follow-Ups:
Re: OpenBSD, autoconf6 flag always cleared?Roy Marples
References:
dhcpcd-7.0.1 releasedRoy Marples
Archive administrator: postmaster@marples.name