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

Function bridge_ioctl_delspan

freebsd/net/if_bridge.c:1713–1734  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1711}
1712
1713static int
1714bridge_ioctl_delspan(struct bridge_softc *sc, void *arg)
1715{
1716 struct ifbreq *req = arg;
1717 struct bridge_iflist *bif;
1718 struct ifnet *ifs;
1719
1720 ifs = ifunit(req->ifbr_ifsname);
1721 if (ifs == NULL)
1722 return (ENOENT);
1723
1724 CK_LIST_FOREACH(bif, &sc->sc_spanlist, bif_next)
1725 if (ifs == bif->bif_ifp)
1726 break;
1727
1728 if (bif == NULL)
1729 return (ENOENT);
1730
1731 bridge_delete_span(sc, bif);
1732
1733 return (0);
1734}
1735
1736static int
1737bridge_ioctl_gbparam(struct bridge_softc *sc, void *arg)

Callers

nothing calls this directly

Calls 2

ifunitFunction · 0.85
bridge_delete_spanFunction · 0.85

Tested by

no test coverage detected