svn commit: r231053 - stable/9/usr.bin/netstat

[ Available lists | Index of svn-src-stable-9 | Month of Feb 2012 | Week of 5 Feb 2012 | Raw email | View thread | Wrap long lines | Reply | Tag ]
From
Michael Tuexen <tuexen@FreeBSD.org>
Date
5 Feb 2012 20:53:07
Subject
svn commit: r231053 - stable/9/usr.bin/netstat
Message-ID
201202052053.q15Kr7WD001188@svn.freebsd.org


[ Hide this part ]
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

Elapsed time: 0.069 seconds