svn commit: r231053 - stable/9/usr.bin/netstat
Michael Tuexen
tuexen at FreeBSD.org
Sun Feb 5 20:53:07 UTC 2012
Author: tuexen
Date: Sun Feb 5 20:53:06 2012
New Revision: 231053
URL: http://svn.freebsd.org/changeset/base/231053
Log:
MFC r230555:
Don't print a warning when using netstat to print
SCTP statistics when there is not SCTP in the kernel.
This problem was reported by Sean Mahood.
Modified:
stable/9/usr.bin/netstat/sctp.c
Directory Properties:
stable/9/usr.bin/ (props changed)
stable/9/usr.bin/netstat/ (props changed)
Modified: stable/9/usr.bin/netstat/sctp.c
==============================================================================
--- stable/9/usr.bin/netstat/sctp.c Sun Feb 5 20:50:56 2012 (r231052)
+++ stable/9/usr.bin/netstat/sctp.c Sun Feb 5 20:53:06 2012 (r231053)
@@ -611,7 +611,8 @@ sctp_stats(u_long off, const char *name,
memset(&zerostat, 0, len);
if (sysctlbyname("net.inet.sctp.stats", &sctpstat, &len,
zflag ? &zerostat : NULL, zflag ? len : 0) < 0) {
- warn("sysctl: net.inet.sctp.stats");
+ if (errno != ENOENT)
+ warn("sysctl: net.inet.sctp.stats");
return;
}
} else
More information about the svn-src-stable-9
mailing list