]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: xt_recent: relax ip_pkt_list_tot restrictions
authorFlorian Westphal <fw@strlen.de>
Mon, 24 Nov 2014 13:06:22 +0000 (14:06 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Thu, 27 Nov 2014 11:40:31 +0000 (12:40 +0100)
commit214094d1a5b4fb34b27130d34357c0b9172d0b37
tree9c5b2a99e19966c1a9c83653759e26969879b27f
parent8714d5dde1aba0726b0c322ef74f10b3101a1c85
netfilter: xt_recent: relax ip_pkt_list_tot restrictions

The maximum value for the hitcount parameter is given by
"ip_pkt_list_tot" parameter (default: 20).

Exceeding this value on the command line will cause the rule to be
rejected.  The parameter is also readonly, i.e. it cannot be changed
without module unload or reboot.

Store size per table, then base nstamps[] size on the hitcount instead.

The module parameter is retained for backwards compatibility.

Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/xt_recent.c