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

Function bridge_ioctl_sifprio

freebsd/net/if_bridge.c:1634–1645  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1632}
1633
1634static int
1635bridge_ioctl_sifprio(struct bridge_softc *sc, void *arg)
1636{
1637 struct ifbreq *req = arg;
1638 struct bridge_iflist *bif;
1639
1640 bif = bridge_lookup_member(sc, req->ifbr_ifsname);
1641 if (bif == NULL)
1642 return (ENOENT);
1643
1644 return (bstp_set_port_priority(&bif->bif_stp, req->ifbr_priority));
1645}
1646
1647static int
1648bridge_ioctl_sifcost(struct bridge_softc *sc, void *arg)

Callers

nothing calls this directly

Calls 2

bridge_lookup_memberFunction · 0.85
bstp_set_port_priorityFunction · 0.85

Tested by

no test coverage detected