I had my code return a MFD_SKIP for the 3rd row in the table. After making
the changes you recommended, the first two rows are displayed, but then the
"snmpwalk" finishes completely with no errors. It just displayed "End of MIB"
So, the error is gone, but unfortunately walking through the MIB does not
continue with the 4th row ....
Robert Story <[EMAIL PROTECTED]> wrote: On Mon, 11 Jun 2007 09:42:11 -0700
(PDT) Need wrote:
NH> I tried looking through the Table2_interface.c file but I can not figure
out what is going on and how a MFD_SKIP return code is handled.
NH>
NH> Will you please help me figure out how to skip certain rows in my
Table2_row_prep() routine properly?
In each table's object_lookup function, change
if (MFD_SUCCESS != rc)
netsnmp_request_set_error_all(requests, rc);
else
ifTable_row_prep(rowreq_ctx);
to
if (MFD_SUCCESS != rc)
netsnmp_request_set_error_all(requests, rc);
else {
rc = ifTable_row_prep(rowreq_ctx);
if (MFD_SKIP == rc) {
rc = SNMP_ERR_NOERROR;
netsnmp_request_set_error_all(requests, SNMP_NOSUCHINSTANCE);
}
}
See if that works...
---------------------------------
Luggage? GPS? Comic books?
Check out fitting gifts for grads at Yahoo! Search.-------------------------------------------------------------------------
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