Searched refs:rate_tokens (Results 1 – 3 of 3) sorted by relevance
235 dst->rate_tokens += now - dst->rate_last; in xrlim_allow()237 if (dst->rate_tokens > XRLIM_BURST_FACTOR*timeout) in xrlim_allow()238 dst->rate_tokens = XRLIM_BURST_FACTOR*timeout; in xrlim_allow()239 if (dst->rate_tokens >= timeout) { in xrlim_allow()240 dst->rate_tokens -= timeout; in xrlim_allow()
1023 rt->u.dst.rate_tokens = 0; in ip_rt_send_redirect()1028 if (rt->u.dst.rate_tokens >= ip_rt_redirect_number) { in ip_rt_send_redirect()1038 (ip_rt_redirect_load << rt->u.dst.rate_tokens)))) { in ip_rt_send_redirect()1041 ++rt->u.dst.rate_tokens; in ip_rt_send_redirect()1044 rt->u.dst.rate_tokens == ip_rt_redirect_number && in ip_rt_send_redirect()1078 rt->u.dst.rate_tokens += now - rt->u.dst.rate_last; in ip_error()1079 if (rt->u.dst.rate_tokens > ip_rt_error_burst) in ip_error()1080 rt->u.dst.rate_tokens = ip_rt_error_burst; in ip_error()1082 if (rt->u.dst.rate_tokens >= ip_rt_error_cost) { in ip_error()1083 rt->u.dst.rate_tokens -= ip_rt_error_cost; in ip_error()
50 unsigned long rate_tokens; member