Date: Mon, 19 Jan 2004 04:20:07 -0500 (EST) From: Andre Guibert de Bruet <andy@siliconlandmark.com> To: current@freebsd.org Subject: netstat -s: sysctl: net.inet.pim.stats: No such file or directory Message-ID: <20040119034655.U42487@alpha.siliconlandmark.com>
index | next in thread | raw e-mail
[-- Attachment #1 --] Hi, Running netstat -s yields the following: igmp: 0 messages received 0 messages received with too few bytes 0 messages received with bad checksum 0 membership queries received 0 membership queries received with invalid field(s) 0 membership reports received 0 membership reports received with invalid field(s) 0 membership reports received for groups to which we belong 0 membership reports sent netstat: sysctl: net.inet.pim.stats: No such file or directory ip6: 0 total packets received 0 with size smaller than minimum 0 with data size < data length I'm seeing this on a current build from 20040115 as well as a 4.9-stable from 20040118. I've attached a patch that removes this warning. We should print out PIM stats if it's enabled in the kernel and not worry users that don't have it on. Regards, > Andre Guibert de Bruet | Enterprise Software Consultant > > Silicon Landmark, LLC. | http://siliconlandmark.com/ > [-- Attachment #2 --] Index: inet.c =================================================================== RCS file: /home/ncvs/src/usr.bin/netstat/inet.c,v retrieving revision 1.60 diff -u -r1.60 inet.c --- inet.c 23 Oct 2003 13:53:19 -0000 1.60 +++ inet.c 19 Jan 2004 09:06:11 -0000 @@ -719,7 +719,7 @@ memset(&zerostat, 0, len); if (sysctlbyname("net.inet.pim.stats", &pimstat, &len, zflag ? &zerostat : NULL, zflag ? len : 0) < 0) { - warn("sysctl: net.inet.pim.stats"); +/* warn("sysctl: net.inet.pim.stats"); */ return; }help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040119034655.U42487>
