Hi,
 
I am implementing a sub-agent and using the iterator helper for the
tables in the MIB.  There are a couple of questions I have about the
free function callbacks which I am using to free data allocated in the
get_first/get_next calls:
 
 - I'm trying to use the 'free_loop_context_at_end' function to free
some data allocated for the loop_context, however this only seems to be
called when a "get" is performed - Not for a getnext/walk etc..  Is this
correct, a bug, or maybe I've missed something.
 
 - Next, I am using the "free_data_context" function to free my data
allocated during the get_first/get_next iterators.  However, if I
perform a get for 2 oids in a single get (snmpget -v2c ..... <oid1>
<oid2>) then the free function seems to get called twice for each of the
oids I am querying.  I suspect this is a bug?
 
I am currently using Net-SNMP version 5.3.0.1.
 
Regards
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-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to