]> git.ipfire.org Git - thirdparty/ulogd2.git/commit
Add variable to force binding of nfnetlink_log.
authorEric Leblond <eric@inl.fr>
Sun, 4 Jan 2009 22:29:50 +0000 (23:29 +0100)
committerEric Leblond <eric@inl.fr>
Sun, 4 Jan 2009 23:17:47 +0000 (00:17 +0100)
commit6bcbe0e967b1339c308d4e14d027b562ff179f7d
treefef221e6b161378d49a454a43148bfe6c42379bd
parent52dea8af4763e3e0a5a32476d25e7130885ddf49
Add variable to force binding of nfnetlink_log.

This patch updates the behaviour of the NFLOG input plugin to fix an
issue related to kernel older than 2.6.29. The call to nflog_bind_pf()
that can be necessary to receive packet from the nfnetlink_log was only
done if the used group was 0 (system logging). This is logic for the
newest kernel (NFLOG really sends message to nfnetlink_log and not to
the nf_log logger). But this is unsufficient for older one. By forcing
the binding with the new configuration variable bind, it is now possible
to trigger the binding from the ulogd2 configuration file. This gives
users a way to be sure that ulogd will receive packets if the NFLOG
input plugin is used.
input/packet/ulogd_inppkt_NFLOG.c
ulogd.conf.in