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

Function bridge_ioctl_sifcost

freebsd/net/if_bridge.c:1647–1658  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1645}
1646
1647static int
1648bridge_ioctl_sifcost(struct bridge_softc *sc, void *arg)
1649{
1650 struct ifbreq *req = arg;
1651 struct bridge_iflist *bif;
1652
1653 bif = bridge_lookup_member(sc, req->ifbr_ifsname);
1654 if (bif == NULL)
1655 return (ENOENT);
1656
1657 return (bstp_set_path_cost(&bif->bif_stp, req->ifbr_path_cost));
1658}
1659
1660static int
1661bridge_ioctl_sifmaxaddr(struct bridge_softc *sc, void *arg)

Callers

nothing calls this directly

Calls 2

bridge_lookup_memberFunction · 0.85
bstp_set_path_costFunction · 0.85

Tested by

no test coverage detected