Re: How to get instance from a Request in Table_handler()

2012-03-20 Thread Simon Chamlian
Thanks. Before seeing you answer, I was doing: // Get index instance = -1; if(table_entry!=NULL) instance = table_entry->_Index; // Validate instance if(instance >= SNMP_CFG_NOTIFIED_NMS_MAX || instance < 0)

Re: How to get instance from a Request in Table_handler()

2012-03-20 Thread Dave Shield
On 16 March 2012 19:39, Simon Chamlian wrote: > In the request handler function: > How can we get the instance of the request > (i.e., the row number of the table) ? The clean way: for (request=requests; request; request=request->next) { table_info = netsnmp_extract_table_info(reque

How to get instance from a Request in Table_handler()

2012-03-16 Thread Simon Chamlian
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;