svn commit: r256512 - head/usr.bin/netstat

Hiroki Sato hrs at FreeBSD.org
Thu Oct 17 21:47:23 UTC 2013


Gleb Smirnoff <glebius at FreeBSD.org> wrote
  in <201310150955.r9F9t8pq084143 at 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/svn-src-all/attachments/20131018/21a29f4b/attachment-0001.sig>


More information about the svn-src-all mailing list