Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 28 Oct 2013 21:41:13 +0100
From:      Jeremie Le Hen <jlh@FreeBSD.org>
To:        Gleb Smirnoff <glebius@FreeBSD.org>
Cc:        svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org
Subject:   Re: svn commit: r256512 - head/usr.bin/netstat
Message-ID:  <20131028204113.GA37879@caravan.chchile.org>
In-Reply-To: <201310150955.r9F9t8pq084143@svn.freebsd.org>
References:  <201310150955.r9F9t8pq084143@svn.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20131028204113.GA37879>