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

Function bstp_disable

freebsd/net/bridgestp.c:2251–2264  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2249}
2250
2251void
2252bstp_disable(struct bstp_port *bp)
2253{
2254 struct bstp_state *bs = bp->bp_bs;
2255
2256 KASSERT(bp->bp_active == 1, ("not a bstp member"));
2257
2258 BSTP_LOCK(bs);
2259 bstp_disable_port(bs, bp);
2260 LIST_REMOVE(bp, bp_next);
2261 bp->bp_active = 0;
2262 bstp_reinit(bs);
2263 BSTP_UNLOCK(bs);
2264}
2265
2266/*
2267 * The bstp_port structure is about to be freed by the parent bridge.

Callers 2

bridge_delete_memberFunction · 0.85
bridge_ioctl_sifflagsFunction · 0.85

Calls 2

bstp_disable_portFunction · 0.85
bstp_reinitFunction · 0.85

Tested by

no test coverage detected