Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 12 Dec 2019 19:17:30 +0000 (UTC)
From:      Baptiste Daroussin <bapt@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org
Subject:   svn commit: r355664 - stable/11/usr.bin/netstat
Message-ID:  <201912121917.xBCJHUDu093612@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: bapt
Date: Thu Dec 12 19:17:30 2019
New Revision: 355664
URL: https://svnweb.freebsd.org/changeset/base/355664

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/11/usr.bin/netstat/main.c
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/usr.bin/netstat/main.c
==============================================================================
--- stable/11/usr.bin/netstat/main.c	Thu Dec 12 19:17:26 2019	(r355663)
+++ stable/11/usr.bin/netstat/main.c	Thu Dec 12 19:17:30 2019	(r355664)
@@ -478,6 +478,9 @@ main(int argc, char *argv[])
 	if (rflag) {
 		xo_open_container("statistics");
 		if (sflag) {
+			if (live) {
+				kresolve_list(nl);
+			}
 			rt_stats();
 			flowtable_stats();
 		} else



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201912121917.xBCJHUDu093612>