Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F145437866
D598.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
776 B
Referenced Files
None
Subscribers
None
D598.id.diff
View Options
Index: sys/net/if.c
===================================================================
--- sys/net/if.c
+++ sys/net/if.c
@@ -874,6 +874,12 @@
#endif
if_purgemaddrs(ifp);
+ /* Announce that the interface is gone. */
+ rt_ifannouncemsg(ifp, IFAN_DEPARTURE);
+ EVENTHANDLER_INVOKE(ifnet_departure_event, ifp);
+ if (IS_DEFAULT_VNET(curvnet))
+ devctl_notify("IFNET", ifp->if_xname, "DETACH", NULL);
+
if (!vmove) {
/*
* Prevent further calls into the device driver via ifnet.
@@ -911,11 +917,6 @@
}
}
- /* Announce that the interface is gone. */
- rt_ifannouncemsg(ifp, IFAN_DEPARTURE);
- EVENTHANDLER_INVOKE(ifnet_departure_event, ifp);
- if (IS_DEFAULT_VNET(curvnet))
- devctl_notify("IFNET", ifp->if_xname, "DETACH", NULL);
if_delgroups(ifp);
/*
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Feb 20, 9:40 PM (21 h, 54 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
28903572
Default Alt Text
D598.id.diff (776 B)
Attached To
Mode
D598: net: move interface removal notification up in if_detach_internal
Attached
Detach File
Event Timeline
Log In to Comment