• Eric Leblond's avatar
    netfilter: sysctl support of logger choice · 17625274
    Eric Leblond authored
    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: default avatarEric Leblond <eric@inl.fr>
    Signed-off-by: default avatarPatrick McHardy <kaber@trash.net>
    17625274
nf_log.c 6.93 KB