Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753499AbYLONdQ (ORCPT ); Mon, 15 Dec 2008 08:33:16 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752502AbYLONc4 (ORCPT ); Mon, 15 Dec 2008 08:32:56 -0500 Received: from stinky.trash.net ([213.144.137.162]:56704 "EHLO stinky.trash.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751971AbYLONcz (ORCPT ); Mon, 15 Dec 2008 08:32:55 -0500 Message-ID: <49465C7E.8050103@trash.net> Date: Mon, 15 Dec 2008 14:32:46 +0100 From: Patrick McHardy User-Agent: Mozilla-Thunderbird 2.0.0.17 (X11/20081018) MIME-Version: 1.0 To: Jozsef Kadlecsik CC: Jan Engelhardt , David Miller , ajax@redhat.com, linux-kernel@vger.kernel.org, davej@redhat.com, netdev@vger.kernel.org, netfilter-devel@vger.kernel.org Subject: Re: [PATCH] net: Remove a noisy printk References: <1229033625-30825-1-git-send-email-ajax@redhat.com> <20081211.203243.124017657.davem@davemloft.net> <49464C2C.6030009@trash.net> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1252 Lines: 25 Jozsef Kadlecsik wrote: > On Mon, 15 Dec 2008, Patrick McHardy wrote: > >> I agree that it doesn't belong to the generic networking code. >> But the way its handled in netfilter is far from perfect as well. >> Currently multiple modules will spam the ringbuffer repeatedly, >> but offer no possibility to change anything in the behaviour of >> how these packets are treated. Unfortunately we can't handle this >> in the ruleset (which is exactly the reason why we're spamming >> the ringbuffer), so how about we add a module option controlling >> how to treat those packets and remove the printk? > > How about this: let the printk be removed from conntrack and the mangle > table but put (back) into the filter table with a module option, which > controls the behaviour (drop/accept & log/nolog)? Sounds fine to me. We can't log it in the usual way though (ipt_LOG/nfnetlink_log) and spamming the ringbuffer should really be a last resort, so I'd prefer to limit it to print the message exactly once. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/