Author: bapt
Date: Mon Dec  9 10:21:24 2019
New Revision: 355554
URL: https://svnweb.freebsd.org/changeset/base/355554

Log:
  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
  MFC after:    3 days

Modified:
  head/usr.bin/netstat/main.c

Modified: head/usr.bin/netstat/main.c
==============================================================================
--- head/usr.bin/netstat/main.c Mon Dec  9 07:18:40 2019        (r355553)
+++ head/usr.bin/netstat/main.c Mon Dec  9 10:21:24 2019        (r355554)
@@ -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);
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to