svn commit: r355663 - stable/12/usr.bin/netstat
Baptiste Daroussin
bapt at FreeBSD.org
Thu Dec 12 19:17:27 UTC 2019
Author: bapt
Date: Thu Dec 12 19:17:26 2019
New Revision: 355663
URL: https://svnweb.freebsd.org/changeset/base/355663
Log:
MFC: r355554
Fix: netstat -rs
Routing statistics requires somes symbols that are only loaded when not running
live. Load them only in that specific case
PR: 242423
Submitted by: olivier
Modified:
stable/12/usr.bin/netstat/main.c
Directory Properties:
stable/12/ (props changed)
Modified: stable/12/usr.bin/netstat/main.c
==============================================================================
--- stable/12/usr.bin/netstat/main.c Thu Dec 12 18:53:45 2019 (r355662)
+++ stable/12/usr.bin/netstat/main.c Thu Dec 12 19:17:26 2019 (r355663)
@@ -484,6 +484,9 @@ main(int argc, char *argv[])
if (rflag) {
xo_open_container("statistics");
if (sflag) {
+ if (live) {
+ kresolve_list(nl);
+ }
rt_stats();
} else
routepr(fib, af);
More information about the svn-src-stable
mailing list