From owner-freebsd-current@FreeBSD.ORG Thu Aug 16 21:04:46 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 5141016A512 for ; Thu, 16 Aug 2007 21:04:46 +0000 (UTC) (envelope-from mikej@rogers.com) Received: from smtp104.rog.mail.re2.yahoo.com (smtp104.rog.mail.re2.yahoo.com [206.190.36.82]) by mx1.freebsd.org (Postfix) with SMTP id DCD1613C468 for ; Thu, 16 Aug 2007 21:04:45 +0000 (UTC) (envelope-from mikej@rogers.com) Received: (qmail 10337 invoked from network); 16 Aug 2007 21:04:45 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=rogers.com; h=Received:X-YMail-OSG:Message-ID:Date:From:User-Agent:MIME-Version:To:CC:Subject:References:In-Reply-To:Content-Type:Content-Transfer-Encoding; b=Uh0RwHmXsonugqT35Px6IErhHi09CgYBn55bTjZLbu1S+4209CopZ8iq5pS90TvMhRS37V+NX5rwo2dHqxpvLg81C+nVRBt6rNSjlWRr31xB5fPXtTrY2vdtOiNjtgmsj9QMDDEVjPR1oOsRngWuKt0hJ8SV3Wtzl08Ro38Ktio= ; Received: from unknown (HELO ?172.16.0.165?) (mikej@rogers.com@99.244.15.156 with plain) by smtp104.rog.mail.re2.yahoo.com with SMTP; 16 Aug 2007 21:04:45 -0000 X-YMail-OSG: k.QCPGgVM1n46dAZaMjPKqJSu2lwbjtyxsYsZEJB0E.k8vPtczK7quYSWQMnrwlwFA-- Message-ID: <46C4BBE7.5000908@rogers.com> Date: Thu, 16 Aug 2007 17:04:39 -0400 From: Mike Jakubik User-Agent: Thunderbird 2.0.0.6 (Windows/20070728) MIME-Version: 1.0 To: Eygene Ryabinkin References: <19693.209.47.38.69.1187277248.squirrel@wettoast.dyndns.org> <20070816163405.GG988@void.codelabs.ru> <20070816164133.GH988@void.codelabs.ru> In-Reply-To: <20070816164133.GH988@void.codelabs.ru> Content-Type: text/plain; charset=KOI8-R; format=flowed Content-Transfer-Encoding: 7bit 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:04:46 -0000 Eygene Ryabinkin wrote: > Andre, good day. > > Thu, Aug 16, 2007 at 08:34:05PM +0400, Eygene Ryabinkin wrote: > >> Thu, Aug 16, 2007 at 11:14:08AM -0400, Mike Jakubik wrote: >> >>> Is there any way to disable these, or have them log to a separate log? >>> > > I had seen about four such questions for the last two weeks, so maybe > it is time to patch tcp(4) manpage? The following is the very rough > patch for it: > --- tcp.4.orig 2007-08-16 20:35:06.000000000 +0400 > +++ tcp.4 2007-08-16 20:37:33.000000000 +0400 > @@ -259,6 +259,11 @@ > 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. > .It Va log_in_vain > Log any connection attempts to ports where there is not a socket > accepting connections. > That sounds like a good idea, perhaps it would also be a good idea to set the default to 0?