On Thu, Jun 23, 2005 at 04:08:46PM +0200, Thomas Anders wrote: > -Coders, > > what *exact* impact is > > netsnmp_ds_set_boolean(NETSNMP_DS_LIBRARY_ID, > NETSNMP_DS_LIB_DONT_PERSIST_STATE, 1); > > supposed to have? The comment in snmplib/default_store.c indicates > "don't save/load any persistant state", but in fact > snmplib/read_config.c::read_config_files() seems to return immediately > without reading *any* (even regular) config file in this case. > > I must be missing something obvious. Please enlighten me.
This was my patch from early last year: http://sourceforge.net/tracker/index.php?func=detail&aid=849159&group_id=12694&atid=312694 All of my code that uses NET-SNMP simply does not care about any config files: it makes a few queries to a particular kind of device, and there is nothing that all the config stuff could be useful for. This allows elision of all config/state loads and saves. I can certainly see how the the name suggests that only the save is suppressed, so I probably ought to submit a second patch that adds some more documentation to this. It was obvious to *me* :-) Steve -- Stephen J Friedl | Security Consultant | UNIX Wizard | +1 714 544-6561 www.unixwiz.net | Tustin, Calif. USA | Microsoft MVP | [EMAIL PROTECTED] ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Net-snmp-coders mailing list Net-snmp-coders@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/net-snmp-coders