Home
last modified time | relevance | path

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

/external/iptables/extensions/
Dlibxt_hashlimit.c209 static uint64_t cost_to_bytes(uint64_t cost) in cost_to_bytes() function
558 if (info->cfg.burst < cost_to_bytes(info->cfg.avg)) in hashlimit_mt_check_v1()
560 "burst cannot be smaller than %lub", cost_to_bytes(info->cfg.avg)); in hashlimit_mt_check_v1()
563 burst /= cost_to_bytes(info->cfg.avg); in hashlimit_mt_check_v1()
564 if (info->cfg.burst % cost_to_bytes(info->cfg.avg)) in hashlimit_mt_check_v1()
588 if (info->cfg.burst < cost_to_bytes(info->cfg.avg)) in hashlimit_mt_check()
590 "burst cannot be smaller than %lub", cost_to_bytes(info->cfg.avg)); in hashlimit_mt_check()
593 burst /= cost_to_bytes(info->cfg.avg); in hashlimit_mt_check()
594 if (info->cfg.burst % cost_to_bytes(info->cfg.avg)) in hashlimit_mt_check()
653 r = cost_to_bytes(avg); in print_bytes()