]> git.karo-electronics.de Git - linux-beck.git/commit
netfilter: nf_log: use an array of loggers instead of list
authorPablo Neira Ayuso <pablo@netfilter.org>
Wed, 18 Jun 2014 17:24:30 +0000 (19:24 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Wed, 25 Jun 2014 17:28:43 +0000 (19:28 +0200)
commit5962815a6a56566318a60dc53ff8789b7e6ec71f
tree185763c01166c9e3592cd10853f97482f730d767
parent7200135bc1e61f1437dc326ae2ef2f310c50b4eb
netfilter: nf_log: use an array of loggers instead of list

Now that legacy ulog targets are not available anymore in the tree, we
can have up to two possible loggers:

1) The plain text logging via kernel logging ring.
2) The nfnetlink_log infrastructure which delivers log messages
   to userspace.

This patch replaces the list of loggers by an array of two pointers
per family for each possible logger and it also introduces a new field
to the nf_logger structure which indicates the position in the logger
array (based on the logger type).

This prepares a follow up patch that consolidates the nf_log_packet()
interface by allowing to specify the logger as parameter.

Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
include/net/netfilter/nf_log.h
net/bridge/netfilter/ebt_log.c
net/netfilter/nf_log.c
net/netfilter/nfnetlink_log.c
net/netfilter/xt_LOG.c