]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitfcb9462da5db3f1ad8b81799d96ef54f18d453a8
tree3458815f1b4ce2ff6961e99015b88f33571f0d38
parentabcbb1cdf7dca9cb03095ea544cb27d867f8790c
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