]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r333362:
authorhselasky <hselasky@FreeBSD.org>
Tue, 15 May 2018 09:40:52 +0000 (09:40 +0000)
committerhselasky <hselasky@FreeBSD.org>
Tue, 15 May 2018 09:40:52 +0000 (09:40 +0000)
commit4ec5047f3016fec7f6ffb50e6cb285bf946d5282
tree5c234f81e3b7ab6ef3099fdab991367b05ca40b1
parent42c4d9bf1c4ca85d48cf3e9c77f25483b8d80bc5
MFC r333362:
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.

Approved by: re (marius)
Reviewed by: network (ae), kib
Differential Revision: https://reviews.freebsd.org/D13407
Sponsored by: Mellanox Technologies
sys/netinet6/in6.c