RE: how to determine table query index in snmp subagent table handler?

STOTTS Timothy <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <6E13A53B51111A48A6299DFACA193D4A82AFD6@041-DB3MPN1-015.041d.mgd.msft.net>
I have a solution. Instead of using the dataset API, I use the tdata API.

INIT:
netsnmp_create_handler_registration()
netsnmp_tdata_create_table()
netsnmp_table_helper_add_indexes()
netsnmp_tdata_register()
netsnmp_tdata_create_row()
netsnmp_tdata_add_row()

HANDLE:
netsnmp_extract_table_info()
netsnmp_tdata_extract_entry()

Does mib2c use this API in any of its table-generating modes? It does not appear to, and I would highly recommend that to be added.

This works so long as the memory pointer to the external row data does not change at any time after table initialization, during program execution; and this is more efficient.

Regards.


________________________________
CONFIDENTIALITY : This e-mail and any attachments are confidential and may be privileged. If you are not a named recipient, please notify the sender immediately and do not disclose the contents to another person, use it for any purpose or store or copy the information in any medium.

------------------------------------------------------------------------------
Write once. Port to many.
Get the SDK and tools to simplify cross-platform app development. Create 
new or port existing apps to sell to consumers worldwide. Explore the 
Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join
http://p.sf.net/sfu/intel-appdev
_______________________________________________
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.