Bjoern A. Zeeb dd4d5a5ffb IPv6: set ifdisabled in the kernel rather than in rc
Enable ND6_IFF_IFDISABLED when the interface is created in the
kernel before return to user space.

This avoids a race when an interface is create by a program which
also calls ifconfig IF inet6 -ifdisabled and races with the
devd -> /etc/pccard_ether -> .. netif start IF -> ifdisabled
calls (the devd/rc framework disabling IPv6 again after the program
had enabled it already).

In case the global net.inet6.ip6.accept_rtadv was turned on,
we also default to enabling IPv6 on the interfaces, rather than
disabling them.

PR:		248172
Reported by:	Gert Doering (gert greenie.muc.de)
Reviewed by:	glebius (, phk)
MFC after:	2 weeks
Differential Revision:	https://reviews.freebsd.org/D27324
2020-11-25 20:58:01 +00:00
..
2020-09-11 13:28:37 +00:00
2019-12-11 17:37:53 +00:00
2020-09-09 00:39:47 +00:00
2018-03-05 16:11:07 +00:00
2020-10-09 15:14:19 +00:00
2019-11-12 22:31:59 +00:00
2019-12-04 16:56:11 +00:00
2019-12-11 17:37:53 +00:00
2020-04-06 23:16:05 +00:00
2020-09-09 00:39:47 +00:00