Lines Matching full:rate
42 "--hashlimit <avg> max average match rate\n"
79 " --hashlimit-upto <avg> max average match rate\n"
82 " --hashlimit-above <avg> min average match rate\n"
200 static bool parse_bytes(const char *rate, uint32_t *val, struct hashlimit_mt_udata *ud)
205 const char *mode = strstr(rate, "b/s");
206 if (!mode || mode == rate)
210 r = atoi(rate);
218 "Rate value too large \"%llu\" (max %u)\n",
223 xtables_error(PARAMETER_PROBLEM, "Rate too high \"%s\"\n", rate);
230 int parse_rate(const char *rate, uint32_t *val, struct hashlimit_mt_udata *ud)
236 delim = strchr(rate, '/');
252 r = atoi(rate);
259 * The rate maps to infinity. (1/day is the minimum they can
262 xtables_error(PARAMETER_PROBLEM, "Rate too fast \"%s\"\n", rate);