| 1630 | } |
| 1631 | |
| 1632 | int |
| 1633 | bstp_set_edge(struct bstp_port *bp, int set) |
| 1634 | { |
| 1635 | struct bstp_state *bs = bp->bp_bs; |
| 1636 | |
| 1637 | BSTP_LOCK(bs); |
| 1638 | if ((bp->bp_operedge = set) == 0) |
| 1639 | bp->bp_flags &= ~BSTP_PORT_ADMEDGE; |
| 1640 | else |
| 1641 | bp->bp_flags |= BSTP_PORT_ADMEDGE; |
| 1642 | BSTP_UNLOCK(bs); |
| 1643 | return (0); |
| 1644 | } |
| 1645 | |
| 1646 | int |
| 1647 | bstp_set_autoedge(struct bstp_port *bp, int set) |
no outgoing calls
no test coverage detected