On Thu, 2 Jun 2005 12:46:36 -0500 [EMAIL PROTECTED] wrote:
EYC> Thanks for the accurate diagnostics.
EYC> I found that NETSNMP_CACHE_DONT_FREE_BEFORE_LOAD cache flag was on. After
EYC> I removed this flag, the problem disappeared.
Ah, the dangers of cut-n-paste of code you don't understand. Been there, done
that.
I should probably add some (optional?) code to the container stuff to
detect when duplicate entries are inserted.
EYC> Then I have another question, NETSNMP_CACHE_DONT_FREE_BEFORE_LOAD cache
EYC> flag is set in ifTable_container_init() in if-mib/ifTable_data_access.c,
EYC> what is the purpose for if-mib to have the flag on, and what need to be
EYC> added to make it work?
It is on because the code needs to maintain some information for each row that
is not in the data structure returned by the data_access method. Take a look at
the cache_load routine, and you'll see that it is dealing with 2 containers -
the previous one (that would normally be free'd), and the new one. Various
shennanigans match up rows that are the same and deal with new or missing rows.
--
NOTE: messages sent directly to me, instead of the lists, will be deleted
unless they are requests for paid consulting services.
Robert Story; NET-SNMP Junkie
Support: <http://www.net-snmp.org/> <irc://irc.freenode.net/#net-snmp>
Archive: <http://sourceforge.net/mailarchive/forum.php?forum=net-snmp-coders>
You are lost in a twisty maze of little standards, all different.
-------------------------------------------------------
This SF.Net email is sponsored by Yahoo.
Introducing Yahoo! Search Developer Network - Create apps using Yahoo!
Search APIs Find out how you can build Yahoo! directly into your own
Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders