Hi All,
I was using net-snmp 5.2.1 and recently updated only agent/helpers
source files to the latest copies.
I am using table-iterator for table implementation.

With the recent update of agent/helpers source files I am facing the
following problem,
        If any one get_column*() function returns NULL then getnext will
move to the next table even though there are accessible columns next to
this in the current table.

After spending some time on the cvs diff of these files I got the reason
but not sure.
Problem was in "sparse_table_helper_handler" function, 
-            if (request->requestvb->type == ASN_NULL ||
-                request->requestvb->type == SNMP_NOSUCHINSTANCE) {
+            if (request->requestvb->type == SNMP_NOSUCHINSTANCE) {

When ' request->requestvb->type' is ASN_NULL this function was not
assigning 
ASN_PRIV_RETRY and get next was moving to next table instead of moving
to next accessible column/instance.

Let me know if this is the right fix?

Thanks
-JP

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to