]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Fix for missing network interface address event when adding the default IPv6
authorhselasky <hselasky@FreeBSD.org>
Tue, 8 May 2018 11:39:01 +0000 (11:39 +0000)
committerhselasky <hselasky@FreeBSD.org>
Tue, 8 May 2018 11:39:01 +0000 (11:39 +0000)
commit95d56654953a39ca201cb89a3026fc6f54e420f3
treeb486aae7ddc84c4c3affe31616d4fcb682f63a49
parente2c577b6c4a29e8791de84af13d8b74f1fe7f721
Fix for missing network interface address event when adding the default IPv6
based link-local address.

The default link local address for IPv6 is added as part of bringing the
network interface up. Move the call to "EVENTHANDLER_INVOKE(ifaddr_event,)"
from the SIOCAIFADDR_IN6 ioctl(2) handler to in6_notify_ifa() which should
catch all the cases of adding IPv6 based addresses to a network interface.
Add a witness warning in case the event handler is not allowed to sleep.

Reviewed by: network (ae), kib
Differential Revision: https://reviews.freebsd.org/D13407
MFC after: 1 week
Sponsored by: Mellanox Technologies
sys/netinet6/in6.c