diff options
author | Patrick McHardy <kaber@trash.net> | 2006-02-27 22:04:17 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2006-02-27 22:04:17 +0100 |
commit | bafac2a512bf4fd2ce7520f3976ce8aab4435f74 (patch) | |
tree | ff5c6538eeebceee2b3b5b137d6c66e8d28e77f1 /net/ipv6 | |
parent | [NETFILTER]: nf_queue: fix end-of-list check (diff) | |
download | linux-bafac2a512bf4fd2ce7520f3976ce8aab4435f74.tar.xz linux-bafac2a512bf4fd2ce7520f3976ce8aab4435f74.zip |
[NETFILTER]: Restore {ipt,ip6t,ebt}_LOG compatibility
The nfnetlink_log infrastructure changes broke compatiblity of the LOG
targets. They currently use whatever log backend was registered first,
which means that if ipt_ULOG was loaded first, no messages will be printed
to the ring buffer anymore.
Restore compatiblity by using the old log functions by default and only use
the nf_log backend if the user explicitly said so.
Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6')
-rw-r--r-- | net/ipv6/netfilter/ip6t_LOG.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/net/ipv6/netfilter/ip6t_LOG.c b/net/ipv6/netfilter/ip6t_LOG.c index 77c725832dec..6b930efa9fb9 100644 --- a/net/ipv6/netfilter/ip6t_LOG.c +++ b/net/ipv6/netfilter/ip6t_LOG.c @@ -436,7 +436,12 @@ ip6t_log_target(struct sk_buff **pskb, li.u.log.level = loginfo->level; li.u.log.logflags = loginfo->logflags; - nf_log_packet(PF_INET6, hooknum, *pskb, in, out, &li, loginfo->prefix); + if (loginfo->logflags & IP6T_LOG_NFLOG) + nf_log_packet(PF_INET6, hooknum, *pskb, in, out, &li, + loginfo->prefix); + else + ip6t_log_packet(PF_INET6, hooknum, *pskb, in, out, &li, + loginfo->prefix); return IP6T_CONTINUE; } |