From owner-freebsd-current@FreeBSD.ORG Thu Aug 16 16:41:39 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 EAE8816A419; Thu, 16 Aug 2007 16:41:39 +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 9D61C13C442; Thu, 16 Aug 2007 16:41:39 +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=XjOE1qsZrJPJmzmsA1bTqdgt9hQJqWmtWqRPY2Z3tWCQpxYNYvxWVxGHIJ9Yy7myMLWG3Kp60tYq2jC9CQl3N3iUq2Iks8GIykkgcXi3J7W+5Rejfmwb0TTCP07GJ+5WV8lfe4acUtYLUsPLX2+GrcPMrNLxHNS1/Bd76rjekH4=; Received: from void.codelabs.ru (void.codelabs.ru [144.206.177.25]) by pobox.codelabs.ru with esmtpsa (TLSv1:AES256-SHA:256) id 1ILiPh-000J5G-KP; Thu, 16 Aug 2007 20:41:37 +0400 Date: Thu, 16 Aug 2007 20:41:33 +0400 From: Eygene Ryabinkin To: andre@freebsd.org Message-ID: <20070816164133.GH988@void.codelabs.ru> References: <19693.209.47.38.69.1187277248.squirrel@wettoast.dyndns.org> <20070816163405.GG988@void.codelabs.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=koi8-r Content-Disposition: inline In-Reply-To: <20070816163405.GG988@void.codelabs.ru> 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 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 16:41:40 -0000 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: > > I recently did an update on my -CURRENT system, and i am now seeing a lot > > of TCP messages from the kernel which are spamming my dmesg and > > /var/log/messages. > > > > --- > > TCP: [217.81.3.76]:2978 to [99.244.15.156]:80; syncache_timer: Response > > timeout, retransmitting (1) SYN|ACK > > TCP: [58.254.32.40]:6926 to [99.244.15.156]:21; syncache_timer: > > Retransmits exhausted, giving up and removing syncache entry > > TCP: [58.254.32.40]:4342 to [99.244.15.156]:21; syncache_timer: Response > > timeout, retransmitting (3) SYN|ACK > > TCP: [209.47.38.69]:17523 to [99.244.15.156]:80 tcpflags 0x4; > > syncache_chkrst: Spurious RST without matching syncache entry (possibly > > syncookie only), segment ignored > > --- > > > > 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. -- Eygene