Hi,

The Table handler functions I get using one of the scripts are:

int xxxTable_handler(
    netsnmp_mib_handler               *handler,
    netsnmp_handler_registration      *reginfo,
    netsnmp_agent_request_info        *reqinfo,
    netsnmp_request_info              *requests)
{

    netsnmp_request_info       *request;
    netsnmp_table_request_info *table_info;
    netsnmp_tdata              *table_data;
    netsnmp_tdata_row          *table_row;
    int                         ret;

    switch (reqinfo->mode)
    {
        case MODE_GET:
                       for (request=requests; request;
request=request->next) {
                           // .... etc etc
                       }
                       break;

        // .... etc etc
         }


    return SNMP_ERR_NOERROR;
}


My question is why do we have a for loop?

           for (request=requests; request; request=request->next)

Since the handler function is called for each OID in the table (so one
request at a time)?

In other words: for(request=requests; request; request=request->next), is
executed once.

Am I missing something?

Thanks,
S.
------------------------------------------------------------------------------
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here 
http://p.sf.net/sfu/sfd2d-msazure
_______________________________________________
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