| 1440 | } |
| 1441 | |
| 1442 | static void |
| 1443 | bstp_set_timer_msgage(struct bstp_port *bp) |
| 1444 | { |
| 1445 | if (bp->bp_port_msg_age + BSTP_MESSAGE_AGE_INCR <= |
| 1446 | bp->bp_port_max_age) { |
| 1447 | bstp_timer_start(&bp->bp_message_age_timer, |
| 1448 | bp->bp_port_htime * 3); |
| 1449 | } else |
| 1450 | /* expires immediately */ |
| 1451 | bstp_timer_start(&bp->bp_message_age_timer, 0); |
| 1452 | } |
| 1453 | |
| 1454 | static int |
| 1455 | bstp_rerooted(struct bstp_state *bs, struct bstp_port *bp) |
no test coverage detected