From owner-svn-src-all@FreeBSD.ORG Wed Oct 30 08:10:44 2013 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 832BDA1C; Wed, 30 Oct 2013 08:10:44 +0000 (UTC) (envelope-from glebius@FreeBSD.org) Received: from cell.glebius.int.ru (glebius.int.ru [81.19.69.10]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 0BD4B2C53; Wed, 30 Oct 2013 08:10:43 +0000 (UTC) Received: from cell.glebius.int.ru (localhost [127.0.0.1]) by cell.glebius.int.ru (8.14.7/8.14.7) with ESMTP id r9U8AfHK043373; Wed, 30 Oct 2013 12:10:41 +0400 (MSK) (envelope-from glebius@FreeBSD.org) Received: (from glebius@localhost) by cell.glebius.int.ru (8.14.7/8.14.7/Submit) id r9U8Af9c043372; Wed, 30 Oct 2013 12:10:41 +0400 (MSK) (envelope-from glebius@FreeBSD.org) X-Authentication-Warning: cell.glebius.int.ru: glebius set sender to glebius@FreeBSD.org using -f Date: Wed, 30 Oct 2013 12:10:41 +0400 From: Gleb Smirnoff To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: Re: svn commit: r256512 - head/usr.bin/netstat Message-ID: <20131030081041.GU52889@FreeBSD.org> References: <201310150955.r9F9t8pq084143@svn.freebsd.org> <20131028204113.GA37879@caravan.chchile.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20131028204113.GA37879@caravan.chchile.org> User-Agent: Mutt/1.5.21 (2010-09-15) X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Oct 2013 08:10:44 -0000 Jeremie, On Mon, Oct 28, 2013 at 09:41:13PM +0100, Jeremie Le Hen wrote: J> On Tue, Oct 15, 2013 at 09:55:08AM +0000, Gleb Smirnoff wrote: J> > Log: J> > Rewrite netstat/if.c to use getifaddrs(3) and getifmaddrs(3) instead of J> > libkvm digging in kernel memory. This is possible since r231506 made J> > getifaddrs(3) to supply if_data for each ifaddr. J> > J> > The pros of this change is that now netstat(1) doesn't know about kernel J> > struct ifnet and struct ifaddr. And these structs are about to change J> > significantly in head soon. New netstat binary will work well with 10.0 J> > and any future kernel. J> > J> > The cons is that now it isn't possible to obtain interface statistics J> > from a vmcore. J> J> Is there a kgdb macro or something like that that could be used for J> debugging purpose? No there is no such thing. I've been debugging network related problems a lot, but I never had a need to do 'netstat -i' on a vmcore. What we usually are interested at is consistency of pointers and so on, not packets/bytes counters of an already dead system. Such a tool can be developed and put into src/tools, but I don't see enough demand for it. -- Totus tuus, Glebius.