Home
last modified time | relevance | path

Searched refs:cr_rate (Results 1 – 4 of 4) sorted by relevance

/freebsd/sys/kern/
H A Dsubr_counter.c147 val = counter_u64_fetch(cr->cr_rate); in counter_ratecheck()
148 counter_u64_zero(cr->cr_rate); in counter_ratecheck()
164 counter_u64_add(cr->cr_rate, 1); in counter_ratecheck()
167 if (counter_u64_fetch(cr->cr_rate) > limit) in counter_ratecheck()
/freebsd/sys/sys/
H A Dcounter.h67 counter_u64_t cr_rate; /* Events since last second */ member
/freebsd/sys/netinet/
H A Dip_icmp.c1161 V_icmp_rates[i].cr_rate = counter_u64_alloc(M_WAITOK); in icmp_bandlimit_init()
1175 counter_u64_free(V_icmp_rates[i].cr_rate); in icmp_bandlimit_uninit()
/freebsd/sys/netinet6/
H A Dicmp6.c2834 V_icmp6_rates[i].cr_rate = counter_u64_alloc(M_WAITOK); in icmp6_ratelimit_init()
2848 counter_u64_free(V_icmp6_rates[i].cr_rate); in icmp6_ratelimit_uninit()