From owner-svn-src-all@FreeBSD.ORG Mon Oct 28 20:49:06 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 AE8CD3CE; Mon, 28 Oct 2013 20:49:06 +0000 (UTC) (envelope-from jlh@FreeBSD.org) Received: from caravan.chchile.org (caravan.chchile.org [178.32.125.136]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 760302CD5; Mon, 28 Oct 2013 20:49:06 +0000 (UTC) Received: by caravan.chchile.org (Postfix, from userid 1000) id F3221C2586; Mon, 28 Oct 2013 20:41:13 +0000 (UTC) Date: Mon, 28 Oct 2013 21:41:13 +0100 From: Jeremie Le Hen To: Gleb Smirnoff Subject: Re: svn commit: r256512 - head/usr.bin/netstat Message-ID: <20131028204113.GA37879@caravan.chchile.org> Mail-Followup-To: Gleb Smirnoff , src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org References: <201310150955.r9F9t8pq084143@svn.freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <201310150955.r9F9t8pq084143@svn.freebsd.org> User-Agent: Mutt/1.5.21 (2010-09-15) Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org 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: Mon, 28 Oct 2013 20:49:06 -0000 Hi Gleb, On Tue, Oct 15, 2013 at 09:55:08AM +0000, Gleb Smirnoff wrote: > Author: glebius > Date: Tue Oct 15 09:55:07 2013 > New Revision: 256512 > URL: http://svnweb.freebsd.org/changeset/base/256512 > > Log: > Rewrite netstat/if.c to use getifaddrs(3) and getifmaddrs(3) instead of > libkvm digging in kernel memory. This is possible since r231506 made > getifaddrs(3) to supply if_data for each ifaddr. > > The pros of this change is that now netstat(1) doesn't know about kernel > struct ifnet and struct ifaddr. And these structs are about to change > significantly in head soon. New netstat binary will work well with 10.0 > and any future kernel. > > The cons is that now it isn't possible to obtain interface statistics > from a vmcore. Is there a kgdb macro or something like that that could be used for debugging purpose? -- Jeremie Le Hen Scientists say the world is made up of Protons, Neutrons and Electrons. They forgot to mention Morons.