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

Function bstp_stop

freebsd/net/bridgestp.c:2185–2198  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2183}
2184
2185void
2186bstp_stop(struct bstp_state *bs)
2187{
2188 struct bstp_port *bp;
2189
2190 BSTP_LOCK(bs);
2191
2192 LIST_FOREACH(bp, &bs->bs_bplist, bp_next)
2193 bstp_set_port_state(bp, BSTP_IFSTATE_DISCARDING);
2194
2195 bs->bs_running = 0;
2196 callout_stop(&bs->bs_bstpcallout);
2197 BSTP_UNLOCK(bs);
2198}
2199
2200int
2201bstp_create(struct bstp_state *bs, struct bstp_port *bp, struct ifnet *ifp)

Callers 1

bridge_stopFunction · 0.85

Calls 1

bstp_set_port_stateFunction · 0.85

Tested by

no test coverage detected