The default /etc/snmpd.config we install for decades has:
begemotSnmpdLocalPortStatus."/var/run/snmpd.sock" = 1
begemotSnmpdLocalPortType."/var/run/snmpd.sock" = 4
However, libbsnmp internally used DEFAULT_LOCAL set to
"/var/run/snmp.sock" (note missing "d") to fill server pathname in case if
API user didn't provide one. This results with default server config
never working with an application that uses default initializer. The
libbsnmptools has a workaround for that, it defines internally
SNMP_DEFAULT_LOCAL that matches /etc/snmpd.config.
Bring this all to an order:
- Make a public define SNMP_DEFAULT_LOCAL in libbsnmp.
- Point it to what /etc/snmpd.config has in.
- Remove workaround from libbsnmptools.