From owner-freebsd-current@FreeBSD.ORG Thu Aug 16 21:49:51 2007 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1F45616A420; Thu, 16 Aug 2007 21:49:51 +0000 (UTC) (envelope-from rea-fbsd@codelabs.ru) Received: from pobox.codelabs.ru (pobox.codelabs.ru [144.206.177.45]) by mx1.freebsd.org (Postfix) with ESMTP id C0F8113C46A; Thu, 16 Aug 2007 21:49:50 +0000 (UTC) (envelope-from rea-fbsd@codelabs.ru) DomainKey-Signature: a=rsa-sha1; q=dns; c=simple; s=one; d=codelabs.ru; h=Received:Date:From:To:Cc:Message-ID:References:MIME-Version:Content-Type:Content-Disposition:In-Reply-To:Sender:X-Spam-Status:Subject; b=F0fuIvfLL35QQo+lZYt0DpMCkjs6c2YTsXzLGRygpl2afflxbEwyoTYKMKlZhp1hcqS1oX0QYwPlkQFWbHG8+TpG81KdkvAhyY0njxIntmWzMC53iOusarDQP5F5A/PywOjhicQR/kdDT2r6j2eXXhNOxkDlPuaCOBgKfJeTK2o=; Received: from void.codelabs.ru (void.codelabs.ru [144.206.177.25]) by pobox.codelabs.ru with esmtpsa (TLSv1:AES256-SHA:256) id 1ILnDu-000KsR-C9; Fri, 17 Aug 2007 01:49:46 +0400 Date: Fri, 17 Aug 2007 01:49:41 +0400 From: Eygene Ryabinkin To: Mike Jakubik Message-ID: <20070816214941.GI988@void.codelabs.ru> References: <19693.209.47.38.69.1187277248.squirrel@wettoast.dyndns.org> <20070816163405.GG988@void.codelabs.ru> <20070816164133.GH988@void.codelabs.ru> <46C4BBE7.5000908@rogers.com> MIME-Version: 1.0 Content-Type: text/plain; charset=koi8-r Content-Disposition: inline In-Reply-To: <46C4BBE7.5000908@rogers.com> Sender: rea-fbsd@codelabs.ru X-Spam-Status: No, score=-3.1 required=4.0 tests=ALL_TRUSTED,AWL,BAYES_00 Cc: freebsd-current@freebsd.org, andre@freebsd.org Subject: Re: TCP info spamming the logs and dmesg X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 16 Aug 2007 21:49:51 -0000 Thu, Aug 16, 2007 at 05:04:39PM -0400, Mike Jakubik wrote: > That sounds like a good idea, perhaps it would also be a good idea to set the > default to 0? See http://www.freebsd.org/cgi/cvsweb.cgi/src/sys/netinet/tcp_input.c#rev1.365 After reading the commit log I had sligtly modified the patch for the tcp(4) to reflect the coupling to log_in_vain: --- tcp.4.orig 2007-08-16 20:35:06.000000000 +0400 +++ tcp.4 2007-08-17 01:45:42.000000000 +0400 @@ -259,6 +259,14 @@ Maximum .Tn TCP receive window. +.It Va log_debug +Enable (1) or disable (0) +.Tn TCP +stack debugging messages. +Default is 1, i.e., the logging is enabled. +Note that enabling this variable will also enable +.Tn log_in_vain +option. .It Va log_in_vain Log any connection attempts to ports where there is not a socket accepting connections. -- Eygene