| 2183 | } |
| 2184 | |
| 2185 | void |
| 2186 | bstp_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 | |
| 2200 | int |
| 2201 | bstp_create(struct bstp_state *bs, struct bstp_port *bp, struct ifnet *ifp) |
no test coverage detected