netstat -s: sysctl: net.inet.pim.stats: No such file or directory

Andre Guibert de Bruet andy at siliconlandmark.com
Mon Jan 19 01:20:12 PST 2004


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/    >
-------------- next part --------------
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;
	}



More information about the freebsd-current mailing list