netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Fw: [PATCH] Fix of wrong ipt debug messages
@ 2004-08-31 23:50 Andrew Morton
  0 siblings, 0 replies; only message in thread
From: Andrew Morton @ 2004-08-31 23:50 UTC (permalink / raw)
  To: netdev

[-- Attachment #1: Type: text/plain, Size: 493 bytes --]



Begin forwarded message:

Date: Tue, 31 Aug 2004 18:42:05 +0400
From: Kirill Korotaev <kksx@mail.ru>
To: torvalds@osdl.org, akpm@osdl.org
Cc: linux-kernel@vger.kernel.org
Subject: [PATCH] Fix of wrong ipt debug messages


This patch fixes wrong ipt debug messages.
The problem is that when CONFIG_NETFILTER_DEBUG is set,
parp_redo() can flood debug output like this:

Mar 13 19:57:19 ts1 nf_hook: hook 0 already set.
Mar 13 19:57:19 ts1 skb: pf=0 (unowned) dev=eth0 len=46
.......

Kirill



[-- Attachment #2: diff-ipt-nfdbgarp-20030317 --]
[-- Type: application/octet-stream, Size: 337 bytes --]

--- linux-2.4.20-019test002/net/ipv4/arp.c	Thu Mar 13 13:15:51 2003
+++ linux-2.4.20-019test003/net/ipv4/arp.c	Mon Mar 17 13:48:08 2003
@@ -597,6 +597,9 @@
 
 static void parp_redo(struct sk_buff *skb)
 {
+#if defined(CONFIG_NETFILTER) && defined(CONFIG_NETFILTER_DEBUG)
+	skb->nf_debug = 0;
+#endif
 	arp_rcv(skb, skb->dev, NULL);
 }
 

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-08-31 23:50 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-08-31 23:50 Fw: [PATCH] Fix of wrong ipt debug messages Andrew Morton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).