... since this has low impact unless it's enabled in config, I think most
things relating to this could be worked on in-tree. The main change for
people not using snmp would be in session_dispatch_imsg() relating to
config reload, but it seems sane to me and doesn't cause any problems
here.
The OID in snmp.c doesn't match the RFC, it should be like this:
#define OIDIDX_bgp4 7
static struct snmp_oid bgpd4oid = {
{ 1, 3, 6, 1, 2, 1, 15 },
7
};
With that fixed, I can fetch single values, but walking fails:
$ snmpget -On -m+BGP4-MIB -v2c -c public 127.0.0.
Since it was brought up on misc, there's been some off-list
interest in work I did during c2k15 that's timed out with
off-list testers.
The following diff implements a subset of RFC 4273, with
no export of individual route entries, which would be sheer
madness over snmp, and for which better tools