Disable IPv6 support via snmpd.conf

Josef Ridky <[email protected]>
Newsgroups gmane.network.net-snmp.devel
Message-ID <[email protected]>
Hi,

I was reached with question about $SUBJ, that I am not sure, if it's possible.

Imagine this situation.

Someone have linux system, on which is disabled IPv6 support via grub file (/etc/default/grub -> ipv6.disable=1). After reboot, this will cause following error message by snmpd [1], that /proc/net/if_inet6 could not be opened. That's completely fine and makes sense. But, is there some way, how to avoid this error message to be shown, when IPv6 is disabled on the system and we don't want to rebuild the whole package just to remove -DNETSNMP_ENABLE_IPV6 from CFLAGS? 

[1] https://github.com/net-snmp/net-snmp/blob/5247f624a36be284b24a7fee941c80a8c74342d8/agent/mibgroup/ip-mib/data_access/ipaddress_linux.c#L237

Best regards

Josef Ridky
Software Engineer
Core Services Team
Red Hat Czech, s.r.o.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.