| 1489 | } |
| 1490 | |
| 1491 | int |
| 1492 | bstp_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 | |
| 1507 | int |
| 1508 | bstp_set_maxage(struct bstp_state *bs, int t) |
no test coverage detected