]> git.ipfire.org Git - thirdparty/iptables.git/commit
extensions: libxt_rateest: output all options in save hook
authorFlorian Westphal <fw@strlen.de>
Thu, 17 May 2012 01:03:08 +0000 (01:03 +0000)
committerPablo Neira Ayuso <pablo@netfilter.org>
Tue, 22 May 2012 18:39:23 +0000 (20:39 +0200)
commita05910364fa0f2f919dbe0b01bcaba9c3cb127ca
tree1f2201ef7b79fe0ac235175728365503b3db772b
parentcb999dfdaf25d5a774d2ee84cb99355438d57c93
extensions: libxt_rateest: output all options in save hook

ipt-restore fails to parse the ipt-save output:
zmatches -m rateest --rateest RE1 --rateest-pps --rateest-lt 5
(should be "--rateest-pps 5 --rateest-lt").  Also, the "delta" option
was never shown in -save output, but twice in some cases when using
"iptables -L".

Also, the "b/pps1" option must be shown when "delta" option is used with
relative mode.

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