| 1936 | } |
| 1937 | |
| 1938 | static int |
| 1939 | bstp_timer_dectest(struct bstp_timer *t) |
| 1940 | { |
| 1941 | if (t->active == 0 || t->latched) |
| 1942 | return (0); |
| 1943 | t->value -= BSTP_TICK_VAL; |
| 1944 | if (t->value <= 0) { |
| 1945 | bstp_timer_stop(t); |
| 1946 | return (1); |
| 1947 | } |
| 1948 | return (0); |
| 1949 | } |
| 1950 | |
| 1951 | static void |
| 1952 | bstp_hello_timer_expiry(struct bstp_state *bs, struct bstp_port *bp) |
no test coverage detected