]> git.ipfire.org Git - thirdparty/iptables.git/commit
extensions: libxt_hashlimit: Create revision 2 of xt_hashlimit to support higher...
authorVishwanath Pai <vpai@akamai.com>
Mon, 26 Sep 2016 19:08:52 +0000 (15:08 -0400)
committerPablo Neira Ayuso <pablo@netfilter.org>
Tue, 4 Oct 2016 07:02:30 +0000 (09:02 +0200)
commit85b794373f9f914a8fc2f015dd9013d91fe7404e
tree86880497007341ebf62bc8750ccc89037b876def
parent4fd312c743e9773ee309e2d42f27bc5f52699321
extensions: libxt_hashlimit: Create revision 2 of xt_hashlimit to support higher pps rates

Create a new revision for the hashlimit iptables extension module. Rev 2
will support higher pps of upto 1 million, Version 1 supports only 10k.

To support this we have to increase the size of the variables avg and
burst in hashlimit_cfg to 64-bit. Create two new structs hashlimit_cfg2
and xt_hashlimit_mtinfo2 and also create newer versions of all the
functions for match, checkentry and destory.

Signed-off-by: Vishwanath Pai <vpai@akamai.com>
Signed-off-by: Joshua Hunt <johunt@akamai.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
extensions/libxt_hashlimit.c
extensions/libxt_hashlimit.t
include/linux/netfilter/xt_hashlimit.h