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

Function if_delgroups

freebsd/net/if.c:1631–1644  ·  view source on GitHub ↗

* Remove an interface from all groups */

Source from the content-addressed store, hash-verified

1629 * Remove an interface from all groups
1630 */
1631static void
1632if_delgroups(struct ifnet *ifp)
1633{
1634 struct ifg_list *ifgl;
1635 char groupname[IFNAMSIZ];
1636
1637 IFNET_WLOCK();
1638 while ((ifgl = CK_STAILQ_FIRST(&ifp->if_groups)) != NULL) {
1639 strlcpy(groupname, ifgl->ifgl_group->ifg_group, IFNAMSIZ);
1640 _if_delgroup_locked(ifp, ifgl, groupname);
1641 IFNET_WLOCK();
1642 }
1643 IFNET_WUNLOCK();
1644}
1645
1646static char *
1647ifgr_group_get(void *ifgrp)

Callers 1

if_detach_internalFunction · 0.85

Calls 2

_if_delgroup_lockedFunction · 0.85
strlcpyFunction · 0.50

Tested by

no test coverage detected