When should a handler return an error?

It's quite unclear to me when I should return SNMP_ERR_NOERROR 
and when I should return something else.  The examples demonstrate
setting an error on a specific request and then returning
SNMP_ERR_NOERROR from the handler:

      case MODE_SET_RESERVE1:
         for (request = requests; request; request = request->next) {
            entry = netsnmp_extract_table_row_data(request);
            table_info = netsnmp_extract_table_info(request);
            switch (table_info->colnum) {
               case COLUMN_FOO1:
                  if (request->requestvb->type != ASN_INTEGER) {
                     netsnmp_request_set_error(reqinfo, SNMP_ERR_WRONGTYPE);
                     return SNMP_ERR_NOERROR;
                  }

If that is how I'm supposed to do it fine however when would I return
an error?  If the handler returns other than SNMP_ERR_NOERROR will it
be called again for the FREE/UNDO phases?

        -Vance



-------------------------------------------------------
This SF.Net email is sponsored by Yahoo.
Introducing Yahoo! Search Developer Network - Create apps using Yahoo!
Search APIs Find out how you can build Yahoo! directly into your own
Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to