|   | php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
| 
  [2001-08-22 11:46 UTC] nicolas dot payen at landis-gyr dot com
 snmpwalkoid doesn't see the end of the MIB. If GET NEXT on the last element, the SNMPv1 Agent return noSuchName error (cf RFC1157), and snmpwalkoid stop with an error. snmpwalk run properly on a SNMPv1 Agent, so it is strange. PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits             | |||||||||||||||||||||||||||||||||
|  Copyright © 2001-2025 The PHP Group All rights reserved. | Last updated: Fri Oct 31 17:00:02 2025 UTC | 
when you're watching the snmp.c code, the PB is easy to see : Warning::st=3->snmpwalkoid. 326 if (st >= 2 && st != 11) { 327 if (vars->type != SNMP_ENDOFMIBVIEW && 328 vars->type != SNMP_NOSUCHOBJECT && vars->type != SNMP_NOSUCHINSTANCE) { 329 memmove((char *)name, (char *)vars->name,vars->name_length * sizeof(oid)); 330 name_length = vars->name_length; 331 keepwalking = 1; 332 } 333 } 334 } 335 } else { 336 if (st != 2 || response->errstat != SNMP_ERR_NOSUCHNAME) { 337 php_error(E_WARNING,"Error in packet.\nReason: %s\n", snmp_errstring(response->errstat)); 338 if (response->errstat == SNMP_ERR_NOSUCHNAME) { the end MIB condition is only right for SNMPv2c and SNMPv3, but it doesn't work with a SNMPv1 agent which return noSuchName at the end of the MIB I could change the code, but I want to work on a NT station. How can I change .dll?