On 23 Jan 2008 13:09:52 -0000, girish <[EMAIL PROTECTED]> wrote:
> case MODE_GET:
>         for (request = requests; request; request = request->next) {

This loops through the list of varbinds relevant to this particular module


>             switch (table_info->colnum) {
>             case COLUMN_MYTABLEID:
>                 Response_handle(unsigned char *Buffer,int size,
>                             netsnmp_request_info *requests);


But this will always work with the head of the list.
So you are constantly updating the first varbind,
and ignoring the rest of the list.

(and similar for the userLabel column).

>             default:
>                 snmp_set_var_typed_value(request->requestvb,
>                                          SNMP_NOSUCHOBJECT, NULL, 0);

This will probably work OK.
But why not simply use the code generated in the mib2c template:

      default:
            netsnmp_set_request_error( reqinfo, request, SNMP_NOSUCHOBJECT);


Dave

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Reply via email to