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

Function bstp_set_maxage

freebsd/net/bridgestp.c:1507–1521  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1505}
1506
1507int
1508bstp_set_maxage(struct bstp_state *bs, int t)
1509{
1510 /* convert seconds to ticks */
1511 t *= BSTP_TICK_VAL;
1512
1513 if (t < BSTP_MIN_MAX_AGE || t > BSTP_MAX_MAX_AGE)
1514 return (EINVAL);
1515
1516 BSTP_LOCK(bs);
1517 bs->bs_bridge_max_age = t;
1518 bstp_reinit(bs);
1519 BSTP_UNLOCK(bs);
1520 return (0);
1521}
1522
1523int
1524bstp_set_holdcount(struct bstp_state *bs, int count)

Callers 1

bridge_ioctl_smaFunction · 0.85

Calls 1

bstp_reinitFunction · 0.85

Tested by

no test coverage detected