summaryrefslogtreecommitdiffstats
path: root/net/netfilter/nfnetlink_log.c
diff options
context:
space:
mode:
authorEric Leblond2008-11-04 14:21:08 +0100
committerPatrick McHardy2008-11-04 14:21:08 +0100
commit5f7340eff8f68f41b7e5c7ad47ec4cd1ea1afb40 (patch)
tree4c59b833f6a4d31b1535aa49e078deaa83b10327 /net/netfilter/nfnetlink_log.c
parentnet/: Kill now superfluous ->last_rx stores. (diff)
downloadkernel-qcow2-linux-5f7340eff8f68f41b7e5c7ad47ec4cd1ea1afb40.tar.gz
kernel-qcow2-linux-5f7340eff8f68f41b7e5c7ad47ec4cd1ea1afb40.tar.xz
kernel-qcow2-linux-5f7340eff8f68f41b7e5c7ad47ec4cd1ea1afb40.zip
netfilter: xt_NFLOG: don't call nf_log_packet in NFLOG module.
This patch modifies xt_NFLOG to suppress the call to nf_log_packet() function. The call of this wrapper in xt_NFLOG was causing NFLOG to use the first initialized module. Thus, if ipt_ULOG is loaded before nfnetlink_log all NFLOG rules are treated as plain LOG rules. Signed-off-by: Eric Leblond <eric@inl.fr> Signed-off-by: Patrick McHardy <kaber@trash.net>
Diffstat (limited to 'net/netfilter/nfnetlink_log.c')
-rw-r--r--net/netfilter/nfnetlink_log.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/net/netfilter/nfnetlink_log.c b/net/netfilter/nfnetlink_log.c
index 41e0105d3828..a51892b3f01a 100644
--- a/net/netfilter/nfnetlink_log.c
+++ b/net/netfilter/nfnetlink_log.c
@@ -533,7 +533,7 @@ static struct nf_loginfo default_loginfo = {
};
/* log handler for internal netfilter logging api */
-static void
+void
nfulnl_log_packet(u_int8_t pf,
unsigned int hooknum,
const struct sk_buff *skb,
@@ -648,6 +648,7 @@ alloc_failure:
/* FIXME: statistics */
goto unlock_and_release;
}
+EXPORT_SYMBOL_GPL(nfulnl_log_packet);
static int
nfulnl_rcv_nl_event(struct notifier_block *this,