| 1711 | } |
| 1712 | |
| 1713 | static int |
| 1714 | bridge_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 | |
| 1736 | static int |
| 1737 | bridge_ioctl_gbparam(struct bridge_softc *sc, void *arg) |
nothing calls this directly
no test coverage detected