Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F106144975
D598.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.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, Dec 27, 3:33 AM (11 h, 34 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15610774
Default Alt Text
D598.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