* netfilter: Make nflog quiet when no one listen in userspace.
@ 2008-06-08 10:05 Eric Leblond
2008-06-08 18:30 ` Patrick McHardy
0 siblings, 1 reply; 2+ messages in thread
From: Eric Leblond @ 2008-06-08 10:05 UTC (permalink / raw)
To: netfilter-devel; +Cc: Eric Leblond
The message "nf_log_packet: can't log since no backend logging module loaded
in! Please either load one, or disable logging explicitly" was displayed for
each logged packet when no userspace application is listening to nflog events.
The message seems to warn for a problem with a kernel module missing but as
said before this is not the case. I thus propose to suppress the message (I
don't see any reason to flood the log because a user application has crashed.)
Signed-off-by: Eric Leblond <eric@inl.fr>
---
net/netfilter/nf_log.c | 4 ----
1 files changed, 0 insertions(+), 4 deletions(-)
diff --git a/net/netfilter/nf_log.c b/net/netfilter/nf_log.c
index bc11d70..9fda6ee 100644
--- a/net/netfilter/nf_log.c
+++ b/net/netfilter/nf_log.c
@@ -92,10 +92,6 @@ void nf_log_packet(int pf,
vsnprintf(prefix, sizeof(prefix), fmt, args);
va_end(args);
logger->logfn(pf, hooknum, skb, in, out, loginfo, prefix);
- } else if (net_ratelimit()) {
- printk(KERN_WARNING "nf_log_packet: can\'t log since "
- "no backend logging module loaded in! Please either "
- "load one, or disable logging explicitly\n");
}
rcu_read_unlock();
}
--
1.5.4.3
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: netfilter: Make nflog quiet when no one listen in userspace.
2008-06-08 10:05 netfilter: Make nflog quiet when no one listen in userspace Eric Leblond
@ 2008-06-08 18:30 ` Patrick McHardy
0 siblings, 0 replies; 2+ messages in thread
From: Patrick McHardy @ 2008-06-08 18:30 UTC (permalink / raw)
To: Eric Leblond; +Cc: netfilter-devel
Eric Leblond wrote:
> The message "nf_log_packet: can't log since no backend logging module loaded
> in! Please either load one, or disable logging explicitly" was displayed for
> each logged packet when no userspace application is listening to nflog events.
> The message seems to warn for a problem with a kernel module missing but as
> said before this is not the case. I thus propose to suppress the message (I
> don't see any reason to flood the log because a user application has crashed.)
Yes, that message has annoyed me on multiple occasions as well.
Applied, thanks Eric.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-06-08 18:30 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-06-08 10:05 netfilter: Make nflog quiet when no one listen in userspace Eric Leblond
2008-06-08 18:30 ` Patrick McHardy
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.