Bug 242423

Summary: netstat -rs is broken
Product: Base System Reporter: Olivier Cochard <olivier>
Component: binAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed FIXED    
Severity: Affects Some People CC: bapt
Priority: ---    
Version: CURRENT   
Hardware: Any   
OS: Any   

Description Olivier Cochard freebsd_committer freebsd_triage 2019-12-04 12:53:57 UTC
# netstat -rs
rtstat: symbol not in namelist

Broken since some time, somewhere between r312663 and r334444 (need to bisec to reduce this large range).
Comment 1 Olivier Cochard freebsd_committer freebsd_triage 2019-12-04 13:43:36 UTC
The culprit commit is r323016.
Comment 2 Baptiste Daroussin freebsd_committer freebsd_triage 2019-12-04 15:49:25 UTC
https://reviews.freebsd.org/D22672 this should fix it can you confirm?
Comment 3 Olivier Cochard freebsd_committer freebsd_triage 2019-12-05 09:21:50 UTC
Yes it fixes it. Thanks!
Comment 4 commit-hook freebsd_committer freebsd_triage 2019-12-09 10:22:09 UTC
A commit references this bug:

Author: bapt
Date: Mon Dec  9 10:21:25 UTC 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

Changes:
  head/usr.bin/netstat/main.c
Comment 5 commit-hook freebsd_committer freebsd_triage 2019-12-12 19:17:36 UTC
A commit references this bug:

Author: bapt
Date: Thu Dec 12 19:17:26 UTC 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

Changes:
_U  stable/12/
  stable/12/usr.bin/netstat/main.c
Comment 6 commit-hook freebsd_committer freebsd_triage 2019-12-12 19:17:38 UTC
A commit references this bug:

Author: bapt
Date: Thu Dec 12 19:17:30 UTC 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

Changes:
_U  stable/11/
  stable/11/usr.bin/netstat/main.c