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.1 BGP4-MIB::bgpLocalAs
.1.3.6.1.2.1.15.2 = INTEGER: 61006

$ snmpwalk -On -m+BGP4-MIB -v2c -c public 127.0.0.1 .1.3.6.1.2.1.15
.1.3.6.1.2.1.15 = No Such Instance currently exists at this OID

$ snmpwalk -On -m+BGP4-MIB -v2c -c public 127.0.0.1 BGP4-MIB::bgpVersion
.1.3.6.1.2.1.15.1 = Hex-STRING: 08 
Error: OID not increasing: .1.3.6.1.2.1.15.1
 >= .1.3.6.1.2.1.15.1

Reply via email to