* Remove an interface from all groups */
| 1629 | * Remove an interface from all groups |
| 1630 | */ |
| 1631 | static void |
| 1632 | if_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 | |
| 1646 | static char * |
| 1647 | ifgr_group_get(void *ifgrp) |
no test coverage detected