summaryrefslogtreecommitdiffstats
path: root/extensions/libipt_NETMAP.man
diff options
context:
space:
mode:
authorJan Engelhardt <jengelh@inai.de>2012-07-28 19:10:08 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2012-07-31 13:32:26 +0200
commit9d69da4bdb1d546218d168b72f12ac8aa042e3d8 (patch)
tree781a8b8638bcba108c85f18f8b91bc85e11f43f4 /extensions/libipt_NETMAP.man
parenta19988f2795770ce470562c1795e1cf53e3aa54b (diff)
libxt_*limit: avoid division by zero
It was possible to specify -A mychain -m hashlimit --hashlimit 600059/minute; this would convert to r->avg=0, which subsequently causes a division by zero when printing with -S mychain. 1. Avoid division by zero in print_rate by printing infinity instead. 2. Rewrite the test in parse_rate to properly reject too high rates. Signed-off-by: Jan Engelhardt <jengelh@inai.de>
Diffstat (limited to 'extensions/libipt_NETMAP.man')
0 files changed, 0 insertions, 0 deletions