MCPcopy Create free account
hub / github.com/F-Stack/f-stack / ether_ifdetach

Function ether_ifdetach

freebsd/net/if_ethersubr.c:1023–1039  ·  view source on GitHub ↗

* Perform common duties while detaching an Ethernet interface */

Source from the content-addressed store, hash-verified

1021 * Perform common duties while detaching an Ethernet interface
1022 */
1023void
1024ether_ifdetach(struct ifnet *ifp)
1025{
1026 struct sockaddr_dl *sdl;
1027
1028 sdl = (struct sockaddr_dl *)(ifp->if_addr->ifa_addr);
1029 uuid_ether_del(LLADDR(sdl));
1030
1031 if (ifp->if_l2com != NULL) {
1032 KASSERT(ng_ether_detach_p != NULL,
1033 ("ng_ether_detach_p is NULL"));
1034 (*ng_ether_detach_p)(ifp);
1035 }
1036
1037 bpfdetach(ifp);
1038 if_detach(ifp);
1039}
1040
1041#ifdef VIMAGE
1042void

Callers 15

ieee80211_vap_detachFunction · 0.85
arge_attachFunction · 0.85
arge_detachFunction · 0.85
are_attachFunction · 0.85
are_detachFunction · 0.85
cpswp_detachFunction · 0.85
emac_detachFunction · 0.85
emac_attachFunction · 0.85
iflib_device_registerFunction · 0.85
iflib_pseudo_registerFunction · 0.85
iflib_pseudo_deregisterFunction · 0.85
iflib_device_deregisterFunction · 0.85

Calls 3

uuid_ether_delFunction · 0.85
bpfdetachFunction · 0.85
if_detachFunction · 0.85

Tested by

no test coverage detected