]> git.ipfire.org Git - thirdparty/iptables.git/commit
libxt_hashlimit: add support for byte-based operation
authorFlorian Westphal <fw@strlen.de>
Tue, 8 May 2012 03:16:52 +0000 (03:16 +0000)
committerPablo Neira Ayuso <pablo@netfilter.org>
Sat, 14 Jul 2012 14:14:50 +0000 (16:14 +0200)
commitabdef13f36b63758f8775eb86febd96bf062df6f
tree930d0579990a21c66044e3eb53f50868552f234c
parent874d7ee3c36ba54220fd204e6aa7cbc731a66395
libxt_hashlimit: add support for byte-based operation

allows --hashlimit-(upto|above) Xb/s [ --hashlimit-burst Yb ]
to make hashlimit match when X bytes/second are exceeded;
optionally, Y bytes will not be matched (i.e. bursted).

[ Pablo fixed minor compilation warning in this patch with gcc-4.6 and x86_64 ]

libxt_hashlimit.c: In function ‘parse_bytes’:
libxt_hashlimit.c:216:6: warning: format ‘%llu’ expects argument of type ‘long long unsigned int’, but argument 3 has type ‘uint64_t’ [-Wformat]

Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
extensions/libxt_hashlimit.c
extensions/libxt_hashlimit.man
include/linux/netfilter/xt_hashlimit.h
tests/options-most.rules