I tried different combination of flags
cache->flags = NETSNMP_CACHE_PRELOAD | NETSNMP_CACHE_DONT_AUTO_RELEASE;

But the rows are getting mixed up . I am in 5.4.1 version.

is Cache with table_tdata framework buggy ?





________________________________
From: sujata patra <sujata_patra2...@yahoo.com>
To: net-snmp-coders <net-snmp-coders@lists.sourceforge.net>
Sent: Sunday, September 4, 2011 12:26 PM
Subject: Re: table_tdata framework is not loading the xxx_load xxx_free hooks ?


If I assign, 

cache->flags |= NETSNMP_CACHE_AUTO_RELOAD, it works.  But on every cache expiry 
it calls the the _free() and _load() hook.
I do not want that . I want _load() to be called when ever there is snmpget/ 
wnmpwalk request. That works nicely with the iterative framework.

what I feel , injecting the handler chain is not proper.

    if (cache) 
        netsnmp_inject_handler_before( reg, netsnmp_cache_handler_get(cache), 
                                       TABLE_TDATA_NAME);

Can any one  point out what is wrong ?




________________________________
From: sujata patra <sujata_patra2...@yahoo.com>
To: net-snmp-coders <net-snmp-coders@lists.sourceforge.net>
Sent: Sunday, September 4, 2011 1:00 AM
Subject: table_tdata framework is not loading the xxx_load xxx_free hooks ?


Hi,
I am trying to write an sample using table_tdata.  using cache , I  am unable 
to load xxx_load() function. So I am not able to get any data using snmpcmd.
I did not do much other than implementing the _load and _free() hooks.

What's  the wrong I am doing ?

I do not have anything to initialize in initialize_table_xxx() 


attaching the file here.
Thanks
------------------------------------------------------------------------------
Why Cloud-Based Security and Archiving Make Sense
Osterman Research conducted this study that outlines how and why cloud
computing security and archiving is rapidly being adopted across the IT 
space for its ease of implementation, lower cost, and increased 
reliability. Learn more. http://www.accelacomm.com/jaw/sfnl/114/51425301/
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to