Page MenuHomeFreeBSD

Drop kvm(3) support in 'netstat -r'.
ClosedPublic

Authored by glebius on Apr 6 2015, 4:18 PM.
Tags
None
Referenced Files
F91718419: D2242.id4702.diff
Wed, Aug 21, 12:11 PM
F91693813: D2242.id4716.diff
Wed, Aug 21, 2:07 AM
Unknown Object (File)
Sun, Aug 18, 9:30 AM
Unknown Object (File)
Jun 30 2024, 9:55 AM
Unknown Object (File)
Jun 27 2024, 12:32 AM
Unknown Object (File)
Jun 25 2024, 3:20 PM
Unknown Object (File)
Jun 1 2024, 12:03 PM
Unknown Object (File)
May 27 2024, 4:44 AM
Subscribers

Details

Summary

Like it was already done for 'netstat -i', drop the kvm(3) support
in 'netstat -r'.

The rationale is that knowledge of 'struct ifnet' and 'struct rtentry'
by userland tool is on the way of projects/ifnet and projects/routing
respectively.

The usage of netstat as post-mortem debugging tool is questionable. For
example, I have worked on network bugs a lot, but never run netstat on
vmcores. I always used gdb scripts for this purpose.

To advocate more my proposal, I will notice that approximately a year
ago we already did the same change for 'netstat -i', and thanks to
that change, now we got per-CPU counters in struct ifaddr, struct ifnet,
and we got hardware only counters for those interfaces that support
that. Without cleansing netstat/if.c off libkvm(3) that would the former
will be much complicated and the latter simply impossible.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

glebius retitled this revision from to Drop kvm(3) support in 'netstat -r'..
glebius updated this object.
glebius edited the test plan for this revision. (Show Details)
glebius added reviewers: network, melifaro.

Update manual page.

Noticed by: melifaro

melifaro edited edge metadata.

Looks fine to me

This revision is now accepted and ready to land.Apr 6 2015, 9:52 PM
gnn added a reviewer: gnn.
glebius updated this revision to Diff 4716.

Closed by commit rS281188 (authored by @glebius).