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

Function bstp_set_fdelay

freebsd/net/bridgestp.c:1491–1505  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1489}
1490
1491int
1492bstp_set_fdelay(struct bstp_state *bs, int t)
1493{
1494 /* convert seconds to ticks */
1495 t *= BSTP_TICK_VAL;
1496
1497 if (t < BSTP_MIN_FORWARD_DELAY || t > BSTP_MAX_FORWARD_DELAY)
1498 return (EINVAL);
1499
1500 BSTP_LOCK(bs);
1501 bs->bs_bridge_fdelay = t;
1502 bstp_reinit(bs);
1503 BSTP_UNLOCK(bs);
1504 return (0);
1505}
1506
1507int
1508bstp_set_maxage(struct bstp_state *bs, int t)

Callers 1

bridge_ioctl_sfdFunction · 0.85

Calls 1

bstp_reinitFunction · 0.85

Tested by

no test coverage detected