Description: MIB-II: Only log once that opening /proc/net/if_inet6 failed
 If IPv6 has been disabled (ipv6.disable=1) then opening /proc/net/if_inet6
 fails. Only log this once instead of thousand of times a day.
Author: Bart Van Assche
Origin: upstream, https://sourceforge.net/p/net-snmp/code/ci/cd09fd82522861830aaf9d237b26eef5f9ba50d2
Bug-Debian: https://bugs.debian.org/944336
Applied-Upstream: after 5.8
Reviewed-by: Craig Small <csmall@debian.org>
Last-Update: 2020-01-05
--- a/agent/mibgroup/ip-mib/data_access/ipaddress_linux.c
+++ b/agent/mibgroup/ip-mib/data_access/ipaddress_linux.c
@@ -234,7 +234,7 @@
 
 #define PROCFILE "/proc/net/if_inet6"
     if (!(in = fopen(PROCFILE, "r"))) {
-        snmp_log_perror("ipaddress_linux: could not open " PROCFILE);
+        NETSNMP_LOGONCE((LOG_ERR, "ipaddress_linux: could not open " PROCFILE));
         return -2;
     }
 
