Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F131881048
D13407.id42264.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
793 B
Referenced Files
None
Subscribers
None
D13407.id42264.diff
View Options
Index: sys/netinet6/in6.c
===================================================================
--- sys/netinet6/in6.c
+++ sys/netinet6/in6.c
@@ -1399,7 +1399,7 @@
if (ifacount <= 1 && ifp->if_ioctl) {
error = (*ifp->if_ioctl)(ifp, SIOCSIFADDR, (caddr_t)ia);
if (error)
- return (error);
+ goto done;
}
/*
@@ -1439,7 +1439,7 @@
ia->ia_flags |= IFA_RTSELF;
error = rtinit(&ia->ia_ifa, RTM_ADD, ia->ia_flags | rtflags);
if (error)
- return (error);
+ goto done;
ia->ia_flags |= IFA_ROUTE;
}
@@ -1452,7 +1452,12 @@
if (error == 0)
ia->ia_flags |= IFA_RTSELF;
}
+done:
+ WITNESS_WARN(WARN_GIANTOK | WARN_SLEEPOK, NULL,
+ "Invoking IPv6 network device address event may sleep");
+ EVENTHANDLER_INVOKE(ifaddr_event, ifp);
+
return (error);
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Oct 12, 10:36 PM (3 h, 48 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
23644063
Default Alt Text
D13407.id42264.diff (793 B)
Attached To
Mode
D13407: Add missing network interface address event for adding default IPv6 link-local addresses
Attached
Detach File
Event Timeline
Log In to Comment