On Fri, Aug 04, 2017 at 03:38:40PM +0000, Florian Obser wrote:
> When we disable INET6 on an interface that also removes the autoconf6
> flag. Notify userland about this via the route socket, otherwise
> slaacd gets confused about the state the interface is in.
The other rtm_ifchg() calls are in net/if.c. Should this one
not also be there in the SIOCIFAFDETACH case?
bluhm
> diff --git netinet6/in6_ifattach.c netinet6/in6_ifattach.c
> index 89acde9c6a4..65eac6dfa56 100644
> --- netinet6/in6_ifattach.c
> +++ netinet6/in6_ifattach.c
> @@ -560,6 +560,8 @@ in6_ifdetach(struct ifnet *ifp)
> rtfree(rt);
> }
>
> - if (ifp->if_xflags & IFXF_AUTOCONF6)
> + if (ifp->if_xflags & IFXF_AUTOCONF6) {
> ifp->if_xflags &= ~IFXF_AUTOCONF6;
> + rtm_ifchg(ifp);
> + }
> }
>
>
> --
> I'm not entirely sure you are real.