Page MenuHomeFreeBSD

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

Authored by glebius on Apr 6 2015, 4:18 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Dec 18, 4:11 AM
Unknown Object (File)
Wed, Dec 18, 3:21 AM
Unknown Object (File)
Thu, Dec 12, 7:02 PM
Unknown Object (File)
Nov 26 2024, 12:12 AM
Unknown Object (File)
Oct 28 2024, 3:39 AM
Unknown Object (File)
Oct 26 2024, 1:43 AM
Unknown Object (File)
Oct 15 2024, 1:54 AM
Unknown Object (File)
Sep 24 2024, 4:30 PM
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
No Lint Coverage
Unit
No Test Coverage

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).