Table Iterator Helper
"Graeme Wilson" <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
Hi, I have a couple of questions/problems with the iterator helper in my Agent code (I've been using Net-SNMP 5.3.0.1). Hopefully someone can help me out please. - I've been trying to use the "free_loop_context_at_end" function callback, but this only seems to get called when a simple "get" is made, and not for an snmpgetnext/snmpwalk. I simply register my callback during the initialise function for the table - and it works for simple gets. Does anyone have any clues or suggestions why this is happening? - I've also been using the "free_data_context" function to free data allocated during the get_first/get_next iterators. However if a get for 2 OIDs is made in a single snmpget request (e.g. snmpget .... <oid1> <oid2>) then the free function seems to get called twice for each oid being queried - this generally causes a crash. Could this be a bug in the helper? Many Thanks Graeme Wilson ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ 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