Do not print a warning about net.inet.pim.stats if errno is
ENOENT, because that means we do not have PIM in the kernel. Submitted by: hmp MFC after: 1 week
This commit is contained in:
parent
5ece1e2fca
commit
6d7c0d2fed
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=126870
@ -719,7 +719,8 @@ pim_stats(u_long off __unused, const char *name, int af1 __unused)
|
||||
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");
|
||||
if (errno != ENOENT)
|
||||
warn("sysctl: net.inet.pim.stats");
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user