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 <[email protected]>
To: net-snmp-coders <[email protected]>
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
------------------------------------------------------------------------------
Special Offer -- Download ArcSight Logger for FREE!
Finally, a world-class log management solution at an even better
price-free! And you'll get a free "Love Thy Logs" t-shirt when you
download Logger. Secure your free ArcSight Logger TODAY!
http://p.sf.net/sfu/arcsisghtdev2dev
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders