From owner-svn-src-head@FreeBSD.ORG Wed Dec 18 18:45:14 2013 Return-Path: Delivered-To: svn-src-head@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 ESMTPS id 83B85D10; Wed, 18 Dec 2013 18:45:14 +0000 (UTC) Received: from h2.funkthat.com (gate2.funkthat.com [208.87.223.18]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 42ABC181B; Wed, 18 Dec 2013 18:45:13 +0000 (UTC) Received: from h2.funkthat.com (localhost [127.0.0.1]) by h2.funkthat.com (8.14.3/8.14.3) with ESMTP id rBIIjCYO024231 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 18 Dec 2013 10:45:13 -0800 (PST) (envelope-from jmg@h2.funkthat.com) Received: (from jmg@localhost) by h2.funkthat.com (8.14.3/8.14.3/Submit) id rBIIjCST024230; Wed, 18 Dec 2013 10:45:12 -0800 (PST) (envelope-from jmg) Date: Wed, 18 Dec 2013 10:45:12 -0800 From: John-Mark Gurney To: "Alexander V. Chernikov" Subject: Re: svn commit: r259562 - head/usr.bin/netstat Message-ID: <20131218184512.GM99167@funkthat.com> References: <201312181825.rBIIPR25014515@svn.freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <201312181825.rBIIPR25014515@svn.freebsd.org> User-Agent: Mutt/1.4.2.3i X-Operating-System: FreeBSD 7.2-RELEASE i386 X-PGP-Fingerprint: 54BA 873B 6515 3F10 9E88 9322 9CB1 8F74 6D3F A396 X-Files: The truth is out there X-URL: http://resnet.uoregon.edu/~gurney_j/ X-Resume: http://resnet.uoregon.edu/~gurney_j/resume.html X-to-the-FBI-CIA-and-NSA: HI! HOW YA DOIN? can i haz chizburger? X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.2 (h2.funkthat.com [127.0.0.1]); Wed, 18 Dec 2013 10:45:13 -0800 (PST) Cc: svn-src-head@FreeBSD.org, svn-src-all@FreeBSD.org, src-committers@FreeBSD.org X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 18 Dec 2013 18:45:14 -0000 Alexander V. Chernikov wrote this message on Wed, Dec 18, 2013 at 18:25 +0000: > Author: melifaro > Date: Wed Dec 18 18:25:27 2013 > New Revision: 259562 > URL: http://svnweb.freebsd.org/changeset/base/259562 > > Log: > Switch netstat -rn to use standard API for retrieving list of routes > instead of peeking inside in-kernel radix via kget. > This permits us to change kernel structures without breaking userland. > Additionally, this change provide more reliable and faster output. > > `Refs` and `Use` fields available in IPv4 by default (and via -W > for other families) were removed. `Refs` is radix-specific thing > which is not informative for users. `Use` field value is handy sometimes, > but a) current API does not support it and b) I'm not sure we will > support per-rte pcpu counters in near future. > > Old method of retrieving data is still supported (either by defining > NewTree=0 or running netstat with -A). However, Refs/Use fields are > hidden. > > Sponsored by: Yandex LLC > MFC after: 4 weeks > PR: kern/167204 How will this impact the use of netstat -rn -M vmcore -N kernel ? Will this change make it not usable, or will you still automatically use it when they are specified? -- John-Mark Gurney Voice: +1 415 225 5579 "All that I will do, has been done, All that I have, has not."