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

Function bstp_set_timer_tc

freebsd/net/bridgestp.c:1420–1440  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1418}
1419
1420static void
1421bstp_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
1442static void
1443bstp_set_timer_msgage(struct bstp_port *bp)

Callers 1

bstp_set_port_tcFunction · 0.85

Calls 1

bstp_timer_startFunction · 0.85

Tested by

no test coverage detected