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...
-------------------------------------------------------------------------
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