How to get instance from a Request in Table_handler()

Simon Chamlian <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <CAJTs9VnP95jXZ=GdsNHD12RHpQN_FW1QRaQo=NRXMv8NsKTrog@mail.gmail.com>
Hi,

In the request handler function:

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;
        case MODE_SET_ACTION:
                       // .... etc etc
                       break;
    }

    return SNMP_ERR_NOERROR;
}


How can we get the instance of the request (i.e., the row number of the
table) ?

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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.