Date: Fri, 18 Oct 2013 04:42:46 +0900 (JST) From: Hiroki Sato <hrs@FreeBSD.org> To: 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: <20131018.044246.2108369934241943610.hrs@allbsd.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
----Security_Multipart(Fri_Oct_18_04_42_46_2013_237)-- Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Gleb Smirnoff <glebius@FreeBSD.org> wrote in <201310150955.r9F9t8pq084143@svn.freebsd.org>: gl> Author: glebius gl> Date: Tue Oct 15 09:55:07 2013 gl> New Revision: 256512 gl> URL: http://svnweb.freebsd.org/changeset/base/256512 gl> gl> Log: gl> Rewrite netstat/if.c to use getifaddrs(3) and getifmaddrs(3) instead of gl> libkvm digging in kernel memory. This is possible since r231506 made gl> getifaddrs(3) to supply if_data for each ifaddr. gl> gl> The pros of this change is that now netstat(1) doesn't know about kernel gl> struct ifnet and struct ifaddr. And these structs are about to change gl> significantly in head soon. New netstat binary will work well with 10.0 gl> and any future kernel. gl> gl> The cons is that now it isn't possible to obtain interface statistics gl> from a vmcore. I think this should be documented in netstat(8) man page. -- Hiroki ----Security_Multipart(Fri_Oct_18_04_42_46_2013_237)-- Content-Type: application/pgp-signature Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.13 (FreeBSD) iEYEABECAAYFAlJgPbYACgkQTyzT2CeTzy0U1gCcCLgz056Zzm9mU5gWABWwG3MV 10sAmwRHUIgljJ6DOez4Pu/aWODm62ou =azU3 -----END PGP SIGNATURE----- ----Security_Multipart(Fri_Oct_18_04_42_46_2013_237)----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20131018.044246.2108369934241943610.hrs>