From owner-freebsd-stable@FreeBSD.ORG Tue Nov 15 10:28:30 2011 Return-Path: Delivered-To: freebsd-stable@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 214AF106564A; Tue, 15 Nov 2011 10:28:30 +0000 (UTC) (envelope-from vince@unsane.co.uk) Received: from unsane.co.uk (unsane-pt.tunnel.tserv5.lon1.ipv6.he.net [IPv6:2001:470:1f08:110::2]) by mx1.freebsd.org (Postfix) with ESMTP id 892CA8FC14; Tue, 15 Nov 2011 10:28:29 +0000 (UTC) Received: from vhoffman.lon.namesco.net (lon.namesco.net [195.7.254.102]) (authenticated bits=0) by unsane.co.uk (8.14.4/8.14.4) with ESMTP id pAFASRDY007319 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO); Tue, 15 Nov 2011 10:28:28 GMT (envelope-from vince@unsane.co.uk) Message-ID: <4EC23ECB.3000805@unsane.co.uk> Date: Tue, 15 Nov 2011 10:28:27 +0000 From: Vincent Hoffman User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:8.0) Gecko/20111105 Thunderbird/8.0 MIME-Version: 1.0 To: Jeremy Chadwick References: <4EC1AAAE.1030007@unsane.co.uk> <20111115003222.GA82751@icarus.home.lan> <20111115005607.GA21345@glenbarber.us> <20111115014602.GA84020@icarus.home.lan> In-Reply-To: <20111115014602.GA84020@icarus.home.lan> X-Enigmail-Version: 1.3.3 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: Glen Barber , FreeBSD Stable Mailing List Subject: Re: question on netstat statistics. X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Nov 2011 10:28:30 -0000 On 15/11/2011 01:46, Jeremy Chadwick wrote: > On Mon, Nov 14, 2011 at 07:56:07PM -0500, Glen Barber wrote: >> Jeremy Chadwick wrote: >> >> [...] >> >>> I don't particularly care what the man page says, I just know what >>> works. :-) >> If there is something in the man page that is not precise, I personally >> am interested in any inconsistencies with reality so they can be fixed. >> Even given your detailed explanation, I'm still not 100% clear on what, >> if anything, is incorrect in the manual. > FWIW, neither am I. The OP seems to be basing his argument syntaxes > based on what's in the man page, so if something is vague, confusing, > or inaccurate, he will need to state clearly what it is that's an > anomaly. > > My comment was more along the lines of: "if it's wrong in the man page, > I'm really not that concerned" (e.g. file a PR and be done with it). > I'm still trying to work out exactly what it is the OP wants > statistics-wise on a per-interface basis. I'm left thinking he wants > "netstat -s" output per-interface, but that's not going to happen. > You are correct, my reading of the manpage suggested that per interface stats should be available. netstat -i | -I interface -s [-f protocol_family | -p protocol] [-M core] [-N system] Display per-interface statistics for each network protocol, for a particular protocol_family, or for a single protocol. As that was incorrect then I do consider the manpage to need updating. I'll file a PR but I wasnt sure if this was correct behavior or not. Thanks, Vince