]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Update for IETF draft-ietf-6man-ipv6only-flag.
authorbz <bz@FreeBSD.org>
Thu, 7 Mar 2019 23:03:39 +0000 (23:03 +0000)
committerbz <bz@FreeBSD.org>
Thu, 7 Mar 2019 23:03:39 +0000 (23:03 +0000)
commit95973073880d43da3b18eedf87b8ccd65374496a
tree14a7b84c2f002d3df8c7088ae870153543a67089
parentfa2c9851f445528dc02b47df52dde91a347f8cf7
Update for IETF draft-ietf-6man-ipv6only-flag.

When we roam between networks and our link-state goes down, automatically remove
the IPv6-Only flag from the interface.  Otherwise we might switch from an
IPv6-only to and IPv4-only network and the flag would stay and we would prevent
IPv4 from working.

While the actual function call to clear the flag is under EXPERIMENTAL,
the eventhandler is not as we might want to re-use it for other
functionality on link-down event (such was re-calculate default routers
for example if there is more than one).

Reviewed by: hrs
Differential Revision: https://reviews.freebsd.org/D19487
sys/netinet6/nd6.c
sys/netinet6/nd6.h
sys/netinet6/nd6_rtr.c