From owner-freebsd-hackers@FreeBSD.ORG Fri Oct 19 20:26:03 2007 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DE89716A420 for ; Fri, 19 Oct 2007 20:26:03 +0000 (UTC) (envelope-from rermilov@team.vega.ru) Received: from mail.vega.ru (mx1.vega.ru [87.242.77.163]) by mx1.freebsd.org (Postfix) with ESMTP id 8289613C465 for ; Fri, 19 Oct 2007 20:25:57 +0000 (UTC) (envelope-from rermilov@team.vega.ru) Received: from [87.242.97.68] (port=63240 helo=edoofus.dev.vega.ru) by mail.vega.ru with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.68 (FreeBSD)) (envelope-from ) id 1Iixsy-0005XP-QD; Fri, 19 Oct 2007 19:51:56 +0000 Received: from edoofus.dev.vega.ru (localhost [127.0.0.1]) by edoofus.dev.vega.ru (8.14.1/8.14.1) with ESMTP id l9JJp7hl081170; Fri, 19 Oct 2007 23:51:07 +0400 (MSD) (envelope-from rermilov@team.vega.ru) Received: (from ru@localhost) by edoofus.dev.vega.ru (8.14.1/8.14.1/Submit) id l9JJp7ar081169; Fri, 19 Oct 2007 23:51:07 +0400 (MSD) (envelope-from rermilov@team.vega.ru) X-Authentication-Warning: edoofus.dev.vega.ru: ru set sender to rermilov@team.vega.ru using -f Date: Fri, 19 Oct 2007 23:51:07 +0400 From: Ruslan Ermilov To: Guy Helmer Message-ID: <20071019195107.GB40442@team.vega.ru> References: <4718C43B.2040504@palisadesys.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4718C43B.2040504@palisadesys.com> User-Agent: Mutt/1.5.16 (2007-06-09) Cc: freebsd-hackers@freebsd.org Subject: Re: Netgraph ng_bridge status message missing last three values? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 19 Oct 2007 20:26:04 -0000 On Fri, Oct 19, 2007 at 09:50:35AM -0500, Guy Helmer wrote: > I'm diagnosing a system that uses the Netgraph ng_bridge node to bridge two > Ethernet segments and the system seems to stop passing traffic at > randomly-triggered points (somewhat annoying for a system half a world away > behind a very restrictive firewall :-) > > I've installed a cron job to dump the Netgraph bridge status messages to a > log file every few minutes. However, I've found that the ng_bridge status > message looks like this: > > > ngctl msg bnet0: getstats 0 > STATS=Rec'd response "getstats" (4) from "[10]:": > Args: { recvOctets=474229151 recvPackets=3322699 recvMulticast=128640 > recvBroadcast=105813 recvUnknown=2372 xmitOctets=516954216 > xmitPackets=2968420 xmitMulticasts=8 xmitBroadcasts=339 } > > but to aid diagnosis I would really like to see several values that, > according to ng_bridge.h, are in the stats structure, including > recvRunts, recvInvalid, loopDrops, loopDetects, and memoryFailures. It > looks like all the code is there to report the values of these variables, > but I can't seem to find anything that is dropping these variables from > ngctl's output. > Struct members with zero values aren't shown. Cheers, -- Ruslan Ermilov ru@FreeBSD.org FreeBSD committer