netfilter: nfnetlink_log: fix per-rule qthreshold override
authorEric Leblond <eric@inl.fr>
Wed, 18 Feb 2009 14:29:23 +0000 (15:29 +0100)
committerPatrick McHardy <kaber@trash.net>
Wed, 18 Feb 2009 14:29:23 +0000 (15:29 +0100)
commit5ca431f9ae8db8c6edb9c64bebe6d6521077afd6
tree3458815f1b4ce2ff6961e99015b88f33571f0d38
parent4aa3b2ee1945ed082430ae1fb988d60eef64ca07
netfilter: nfnetlink_log: fix per-rule qthreshold override

In NFLOG the per-rule qthreshold should overrides per-instance only
it is set. With current code, the per-rule qthreshold is 1 if not set
and it overrides the per-instance qthreshold.

This patch modifies the default xt_NFLOG threshold from 1 to
0. Thus a value of 0 means there is no per-rule setting and the instance
parameter has to apply.

Signed-off-by: Eric Leblond <eric@inl.fr>
Signed-off-by: Patrick McHardy <kaber@trash.net>
include/linux/netfilter/xt_NFLOG.h
net/netfilter/nfnetlink_log.c