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
This commit is contained in:
Baptiste Daroussin 2019-12-09 10:21:24 +00:00
parent 1bf6738f80
commit 2ccdd4b39d
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=355554

View File

@ -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);