On Thu, 2005-08-25 at 00:05 +0200, Anthony Novatsis wrote: > If the RowStatus=active occurs when there are still other columns > which are noSuchInstance (and these are not in the same PDU). In > other words, the RowStatus=active is premature. In this case, the > agent should return inconsistentValue. But at this point, how do I > know that the other columns have not been correctly set.
The code block that processes the RowStatus assignment must check the data structure that represents that row of the table, and ensure that all relevant fields have a value. This would typically be handled within the ACTION pass. The one complicating factor is that this check can *only* be made after all the assignments in the same request have been applied. The easiest way to do this is to have a separate "consistency check" loop at the end of the ACTION pass, looking for RowStatus assignments of 'active(1)' or 'createAndGo(4)', and checking the corresponding row data structure. There's an example of this in the 'mibgroup/agent/extend.c' module. Dave ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Net-snmp-coders mailing list Net-snmp-coders@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/net-snmp-coders