Home
last modified time | relevance | path

Searched refs:CREDITS_PER_JIFFY (Results 1 – 2 of 2) sorted by relevance

/linux-2.4.37.9/net/ipv6/netfilter/
Dip6t_limit.c42 #define CREDITS_PER_JIFFY 128 macro
58 r->credit += (now - xchg(&r->prev, now)) * CREDITS_PER_JIFFY; in ip6t_limit_match()
78 if (user > 0xFFFFFFFF / (HZ*CREDITS_PER_JIFFY)) in user2credits()
80 return (user / IP6T_LIMIT_SCALE) * HZ * CREDITS_PER_JIFFY; in user2credits()
82 return (user * HZ * CREDITS_PER_JIFFY) / IP6T_LIMIT_SCALE; in user2credits()
/linux-2.4.37.9/net/ipv4/netfilter/
Dipt_limit.c53 #define CREDITS_PER_JIFFY POW2_BELOW32(MAX_CPJ) macro
69 r->credit += (now - xchg(&r->prev, now)) * CREDITS_PER_JIFFY; in ipt_limit_match()
89 if (user > 0xFFFFFFFF / (HZ*CREDITS_PER_JIFFY)) in user2credits()
91 return (user / IPT_LIMIT_SCALE) * HZ * CREDITS_PER_JIFFY; in user2credits()
93 return (user * HZ * CREDITS_PER_JIFFY) / IPT_LIMIT_SCALE; in user2credits()