From owner-svn-src-head@FreeBSD.ORG Wed Dec 18 22:38:45 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 8F416576; Wed, 18 Dec 2013 22:38:45 +0000 (UTC) Received: from bigwig.baldwin.cx (bigwig.baldwin.cx [IPv6:2001:470:1f11:75::1]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 64A011E25; Wed, 18 Dec 2013 22:38:45 +0000 (UTC) Received: from jhbbsd.localnet (unknown [209.249.190.124]) by bigwig.baldwin.cx (Postfix) with ESMTPSA id 5F69CB980; Wed, 18 Dec 2013 17:38:44 -0500 (EST) From: John Baldwin To: "Alexander V. Chernikov" Subject: Re: svn commit: r259562 - head/usr.bin/netstat Date: Wed, 18 Dec 2013 16:40:52 -0500 User-Agent: KMail/1.13.5 (FreeBSD/8.4-CBSD-20130906; KDE/4.5.5; amd64; ; ) References: <201312181825.rBIIPR25014515@svn.freebsd.org> <20131218184512.GM99167@funkthat.com> <52B2009E.1060905@FreeBSD.org> In-Reply-To: <52B2009E.1060905@FreeBSD.org> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201312181640.52147.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.7 (bigwig.baldwin.cx); Wed, 18 Dec 2013 17:38:44 -0500 (EST) Cc: svn-src-head@freebsd.org, John-Mark Gurney , src-committers@freebsd.org, svn-src-all@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 22:38:45 -0000 On Wednesday, December 18, 2013 3:07:58 pm Alexander V. Chernikov wrote: > On 18.12.2013 22:45, John-Mark Gurney wrote: > > 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 > Well. It will probably break in (maybe, near) future. Please don't gratuitiously break things that /usr/sbin/crashinfo runs. It's fine if kvm mode is fragile and requires the binary to be in sync with the kernel and is only used for crash dumps, but it is very useful to extract all sorts of info out of a crash dump. -- John Baldwin