Hello.

I am developing snmp agent which should maintain one table. I've implemented 
getting table through snmp. But there is some trouble. Actual table data must 
be received from other computer using TCP. There is no problem go get this 
data. I do it in the first call of table's get_first_data_point function. Then 
net snmp library calls table handler for every item in the table. Then it calls 
this handler again but with requests->processed == true. At that moment I clear 
my table and consider it to be irrelevant. It works fine when I execute 
snmptable for this table. But if I execute snmpget for a particular item of the 
table, the table handler function is called only once. Therefore my agent still 
considers this table relevant and therefore this table isn't reloaded at the 
next request. I've tried to use netsnmp_inject_handler function for table 
loading, but this injected handler is called before EVERY table handler call. 
Therefore this function isn't appropriate for table loading. How  
could I decide when I should free loaded table?

------------------------------------------------------------------------------
Android is increasing in popularity, but the open development platform that
developers love is also attractive to malware creators. Download this white
paper to learn more about secure code signing practices that can help keep
Android apps secure.
http://pubads.g.doubleclick.net/gampad/clk?id=65839951&iu=/4140/ostg.clktrk
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to