On 2017/07/27 10:58, Gerhard Roth wrote: > Hi, > > snmpd uses the same storage for sm_error and sm_nonrepeaters. Same applies > to sm_errorindex and sm_maxrepetitions. If we produce a response PDU to > a getbulk request, sm_error will carry the number of non-repeaters from > the request and sm_errorindex the max. number of repetitions. This is > wrong. We should clears those fields in case of success.
This is definitely an improvement. There still seems to be something not quite right though, non-repeaters are repeating - I wouldn't expect to see sysObjectID, sysUpTime, sysContact, ipDefaultTTL, ipInRecives, ipInHdrErrors here: $ snmpbulkget -Cn2 -Cr4 -v2c -c public 127.0.0.1 SNMPv2-MIB::sysDescr \ IP-MIB::ipForwarding IF-MIB::ifName IF-MIB::ifInOctets SNMPv2-MIB::sysDescr.0 = STRING: sym SNMPv2-MIB::sysObjectID.0 = OID: OPENBSD-BASE-MIB::openBSDDefaultObjectID SNMPv2-MIB::sysUpTime.0 = Timeticks: (18115) 0:03:01.15 SNMPv2-MIB::sysContact.0 = STRING: root@some.email.address.example IP-MIB::ipForwarding.0 = INTEGER: forwarding(1) IP-MIB::ipDefaultTTL.0 = INTEGER: 64 IP-MIB::ipInReceives.0 = Counter32: 26379088 IP-MIB::ipInHdrErrors.0 = Counter32: 0 IF-MIB::ifName.1 = STRING: em0 IF-MIB::ifName.2 = STRING: em1 IF-MIB::ifName.3 = STRING: enc0 IF-MIB::ifName.4 = STRING: lo0 IF-MIB::ifInOctets.1 = Counter32: 2586116638 IF-MIB::ifInOctets.2 = Counter32: 0 IF-MIB::ifInOctets.3 = Counter32: 0 IF-MIB::ifInOctets.4 = Counter32: 508223137