Re: TCP info spamming the logs and dmesg

From: Eygene Ryabinkin <rea-fbsd_at_codelabs.ru>
Date: Fri, 17 Aug 2007 01:49:41 +0400
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
_at__at_ -259,6 +259,14 _at__at_
 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
Received on Thu Aug 16 2007 - 19:49:51 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:16 UTC