diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2014-06-18 19:24:30 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2014-06-25 19:28:43 +0200 |
commit | 5962815a6a56566318a60dc53ff8789b7e6ec71f (patch) | |
tree | 185763c01166c9e3592cd10853f97482f730d767 /net/netfilter/nfnetlink_log.c | |
parent | 7200135bc1e61f1437dc326ae2ef2f310c50b4eb (diff) | |
download | linux-stable-5962815a6a56566318a60dc53ff8789b7e6ec71f.tar.gz linux-stable-5962815a6a56566318a60dc53ff8789b7e6ec71f.tar.bz2 linux-stable-5962815a6a56566318a60dc53ff8789b7e6ec71f.zip |
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>
Diffstat (limited to 'net/netfilter/nfnetlink_log.c')
-rw-r--r-- | net/netfilter/nfnetlink_log.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/netfilter/nfnetlink_log.c b/net/netfilter/nfnetlink_log.c index d292c8d286eb..160bb8ea9923 100644 --- a/net/netfilter/nfnetlink_log.c +++ b/net/netfilter/nfnetlink_log.c @@ -773,6 +773,7 @@ nfulnl_recv_unsupp(struct sock *ctnl, struct sk_buff *skb, static struct nf_logger nfulnl_logger __read_mostly = { .name = "nfnetlink_log", + .type = NF_LOG_TYPE_ULOG, .logfn = &nfulnl_log_packet, .me = THIS_MODULE, }; |