diff options
author | Michael Tuexen <tuexen@FreeBSD.org> | 2012-01-25 21:49:48 +0000 |
---|---|---|
committer | Michael Tuexen <tuexen@FreeBSD.org> | 2012-01-25 21:49:48 +0000 |
commit | 23a0e422aa20a345e475a39be700eca44d174389 (patch) | |
tree | beec4023d6af21aec161cb5c02fdde66b25ef6f5 /usr.bin | |
parent | 7599ae7787c4923faa6d79a4c44c7a2e71fb9c1b (diff) | |
download | src-23a0e422aa20a345e475a39be700eca44d174389.tar.gz src-23a0e422aa20a345e475a39be700eca44d174389.zip |
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.
MFC after: 1 week.
Notes
Notes:
svn path=/head/; revision=230555
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/netstat/sctp.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/netstat/sctp.c b/usr.bin/netstat/sctp.c index fb94d4435234..3f13b7195756 100644 --- a/usr.bin/netstat/sctp.c +++ b/usr.bin/netstat/sctp.c @@ -611,7 +611,8 @@ sctp_stats(u_long off, const char *name, int af1 __unused, int proto __unused) 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 |