]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: sysctl support of logger choice
authorEric Leblond <eric@inl.fr>
Mon, 23 Mar 2009 12:16:53 +0000 (13:16 +0100)
committerPatrick McHardy <kaber@trash.net>
Mon, 23 Mar 2009 12:16:53 +0000 (13:16 +0100)
commit9947b4ee6ba29183db8d1a4f7c4263d1307e11b4
tree153bc3b193a1c9cd21a52ab67b622afd4db869d8
parente34244114caac82b031666a8ef844a7208725de0
netfilter: sysctl support of logger choice

This patchs adds support of modification of the used logger via sysctl.
It can be used to change the logger to module that can not use the bind
operation (ipt_LOG and ipt_ULOG). For this purpose, it creates a
directory /proc/sys/net/netfilter/nf_log which contains a file
per-protocol. The content of the file is the name current logger (NONE if
not set) and a logger can be setup by simply echoing its name to the file.
By echoing "NONE" to a /proc/sys/net/netfilter/nf_log/PROTO file, the
logger corresponding to this PROTO is set to NULL.

Signed-off-by: Eric Leblond <eric@inl.fr>
Signed-off-by: Patrick McHardy <kaber@trash.net>
net/netfilter/nf_log.c