mirror of
https://github.com/opnsense/src.git
synced 2026-04-22 06:39:32 -04:00
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
1 changed files with 2 additions and 1 deletions
|
|
@ -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 a new issue