| 1418 | } |
| 1419 | |
| 1420 | static void |
| 1421 | bstp_set_timer_tc(struct bstp_port *bp) |
| 1422 | { |
| 1423 | struct bstp_state *bs = bp->bp_bs; |
| 1424 | |
| 1425 | if (bp->bp_tc_timer.active) |
| 1426 | return; |
| 1427 | |
| 1428 | switch (bp->bp_protover) { |
| 1429 | case BSTP_PROTO_RSTP: |
| 1430 | bstp_timer_start(&bp->bp_tc_timer, |
| 1431 | bp->bp_desg_htime + BSTP_TICK_VAL); |
| 1432 | bp->bp_flags |= BSTP_PORT_NEWINFO; |
| 1433 | break; |
| 1434 | |
| 1435 | case BSTP_PROTO_STP: |
| 1436 | bstp_timer_start(&bp->bp_tc_timer, |
| 1437 | bs->bs_root_max_age + bs->bs_root_fdelay); |
| 1438 | break; |
| 1439 | } |
| 1440 | } |
| 1441 | |
| 1442 | static void |
| 1443 | bstp_set_timer_msgage(struct bstp_port *bp) |
no test coverage detected