Row number in table call-back

Thomas Andrews <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
Hi All,

How do I find the "row" number (ie index) for a table entry, when 
processing a call-back?

e.g. the call-back is set up so:

     netsnmp_register_table_data_set(netsnmp_create_handler_registration
             ("fooTable", fooTable_handler, fooTable_oid,
              OID_LENGTH(fooTable_oid), HANDLER_CAN_RWRITE),
              table_set, NULL);

Now in the call-back handler:

int fooTable_handler(netsnmp_mib_handler *handler,
         netsnmp_handler_registration *reginfo,
         netsnmp_agent_request_info *reqinfo,
         netsnmp_request_info *requests)
{
         // This is where I need to find the index...
         return SNMP_ERR_NOERROR;
}

Many thanks,
Thomas

------------------------------------------------------------------------------
_______________________________________________
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.