MCPcopy Create free account
hub / github.com/F-Stack/f-stack / bstp_set_timer_msgage

Function bstp_set_timer_msgage

freebsd/net/bridgestp.c:1442–1452  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1440}
1441
1442static void
1443bstp_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
1454static int
1455bstp_rerooted(struct bstp_state *bs, struct bstp_port *bp)

Callers 1

bstp_received_bpduFunction · 0.85

Calls 1

bstp_timer_startFunction · 0.85

Tested by

no test coverage detected