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

Function bstp_timer_dectest

freebsd/net/bridgestp.c:1938–1949  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1936}
1937
1938static int
1939bstp_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
1951static void
1952bstp_hello_timer_expiry(struct bstp_state *bs, struct bstp_port *bp)

Callers 1

bstp_tickFunction · 0.85

Calls 1

bstp_timer_stopFunction · 0.85

Tested by

no test coverage detected