Be sure to disable the port when removing it from STP.

This commit is contained in:
Andrew Thompson 2006-08-02 01:36:40 +00:00
parent c0e1415d51
commit df6e8892dc

View File

@ -1267,6 +1267,8 @@ bstp_delete(struct bstp_port *bp)
KASSERT(bp->bp_active == 1, ("not a bstp member"));
BSTP_LOCK(bs);
if (bp->bp_state != BSTP_IFSTATE_DISABLED)
bstp_disable_port(bs, bp);
LIST_REMOVE(bp, bp_next);
BSTP_UNLOCK(bs);
bp->bp_bs = NULL;