Searched refs:parse_rate (Results 1 – 2 of 2) sorted by relevance
/external/iptables/extensions/ |
D | libxt_limit.c | 48 int parse_rate(const char *rate, uint32_t *val) in parse_rate() function 88 parse_rate(XT_LIMIT_AVG, &r->avg); in limit_init() 106 if (!parse_rate(cb->arg, &r->avg)) in limit_parse() 222 if (!parse_rate(optarg, &r->avg)) in brlimit_parse()
|
D | libxt_hashlimit.c | 377 int parse_rate(const char *rate, void *val, struct hashlimit_mt_udata *ud, int revision) in parse_rate() function 543 if (!parse_rate(cb->arg, &info->cfg.avg, cb->udata, 1)) in hashlimit_parse() 569 else if (!parse_rate(cb->arg, &info->cfg.avg, cb->udata, 1)) in hashlimit_mt_parse_v1() 578 else if (!parse_rate(cb->arg, &info->cfg.avg, cb->udata, 1)) in hashlimit_mt_parse_v1() 610 else if (!parse_rate(cb->arg, &info->cfg.avg, cb->udata, 2)) in hashlimit_mt_parse_v2() 619 else if (!parse_rate(cb->arg, &info->cfg.avg, cb->udata, 2)) in hashlimit_mt_parse_v2() 651 else if (!parse_rate(cb->arg, &info->cfg.avg, cb->udata, 2)) in hashlimit_mt_parse() 660 else if (!parse_rate(cb->arg, &info->cfg.avg, cb->udata, 2)) in hashlimit_mt_parse()
|