On Fri, 2006-01-20 at 18:21 +0530, gautam borad wrote:
> Hi,
>     I'm using net-snmp v 5.3.0.1 mib2c to generate the .c files.
> I want to implement a table with RowStatus and that allows
> dynamic creation of rows. Now the problem is that i have 
> a column in the table that needs to have unique value (apart
> from the index) across the entire table.

Fair enough.


> Here is what i tried but it did not work.
> I created the .c file using  "mib2c -c mib2c.create-dataset.conf vac"


>   if(tmpTable[index] == *(request->requestvb->val.integer) ){
>                       // the  myID  is already assigned to some other
> row
>      return SNMP_ERR_GENERR;   // Is it OK to return here??

No - that's not the right way to report an error
(and probably the wrong error, too).
Try
       netsnmp_set_request_error(reqinfo, request,
                                 SNMP_ERR_INCONSISTENTVALUE);


Dave


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Reply via email to