Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 15 Feb 2017 09:17:54 -0600
From:      Eric van Gyzen <vangyzen@FreeBSD.org>
To:        Mark Martinec <Mark.Martinec+freebsd@ijs.si>, freebsd-stable@freebsd.org
Subject:   Re: net.inet.udp.log_in_vain strange syslog reports
Message-ID:  <57f7fe65-c854-c52d-ce33-3a2a919d0ce9@FreeBSD.org>
In-Reply-To: <318110819f687c06e6d412955bbac6b1@ijs.si>
References:  <76681a24b7935674585b5ac585f4575c@ijs.si> <ab6cbfbb-83c3-e27d-0d26-50313f171bf0@FreeBSD.org> <667fa3e1dd8e7cebbf4566467a7987bf@ijs.si> <7dca33f9-e817-7d79-bddd-332e745a1c05@FreeBSD.org> <318110819f687c06e6d412955bbac6b1@ijs.si>

next in thread | previous in thread | raw e-mail | index | archive | help
On 02/15/2017 08:56, Mark Martinec wrote:
> In a similar vein, I noticed also the following in our logs,
> with net.inet.tcp.log_in_vain=1.
>
> Looks like messages got concatenated somehow:
>
> Jan 25 01:37:53 mildred kernel: TCP: [2607:ff10:c5:509a::10]:26459 to
> [2001:1470:ff80::80:16]:4911 tcpflags 0x2<SYN>; tcp_input: Connection attempt to
> closed TCP: [2607:ff10:c5:509a::10]:14898 to [2001:1470:ff80::80:16]:5222
> tcpflags 0x2<SYN>; tcp_input: Connection attempt to closed port

The length of the truncated "TCP:...closed" message is just under 128, which is 
the PRINTF_BUFR_SIZE as defined in sys/amd64/conf/GENERIC.  You could try 
increasing this value and rebuilding your kernel to see if that fixes the 
truncation.  Don't increase it very much, since it's used to declare a buffer on 
the stack, and stack space is quite limited.  For this case, 180 should be enough.

Eric



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?57f7fe65-c854-c52d-ce33-3a2a919d0ce9>