On 12/01/07, Clement Hsu <[EMAIL PROTECTED]> wrote: > My system is net-snmp 5.3.1 and my mib2c option choose net-snmp template.
That's not really sufficient information. There are several possible templates that come under the "net-snmp" heading. Are you talking about a scalar or table implementation here, and *exactly* which selection(s) did you choose? > the code is like following: > > > case MODE_SET_ACTION: > > ......... > > if ( testScalarSet(data) ) { > netsnmp_set_request_error(reqinfo, requests,SNMP_ERR_GENERR); > } It's a bit difficult to tell exactly what's happening, given amount of code you've cut. From the name 'testScalarSet', it sounds as if you're implementing a scalar object. But the only mention of SNMP_ERR_GENERR in the scalar template is under the 'default' case - not SET_ACTION. And none of the other templates seem to have this code either. It's not worth us trying to guess what code you're working with. Please give us a little more to go on. Dave ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ 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