With a kernel that doesn't have "device mem", the tool "netstat" doesn't work. As far as I can tell, "device mem" isn't necessary for anything else in the basic system to work. I request that "netstat" be not dependent on "device mem", which I would like to get rid of in production machines. How-To-Repeat: With a kernel that doesn't have "device mem": $ netstat netstat: kvm not available netstat: kvm not available
State Changed From-To: open->suspended Software wish-list; suspend until someone provides patches to implement.
This PR looks rather old and seems that most of the work has been done. However, I noticed that there is still an error, which can be removed by removing the kread() call in the diff below. Can someone give advice? I tracked the inclusion of this seemingly extra call in revision 1.86 of main.c in netstat. Looking at the arguments that are passed, it seem it was only used to verify that kvm was available or not. Here is possible patch. Index: usr.bin/netstat/main.c =================================================================== --- usr.bin/netstat/main.c (revision 196109) +++ usr.bin/netstat/main.c (working copy) @@ -530,7 +530,6 @@ * used for the queries, which is slower. */ #endif - kread(0, NULL, 0); if (iflag && !sflag) { intpr(interval, nl[N_IFNET].n_value, NULL); exit(0); Joshua A Piccari /dv/
For bugs matching the following conditions: - Status == In Progress - Assignee == "bugs@FreeBSD.org" - Last Modified Year <= 2017 Do - Set Status to "Open"