On Fri, 2009-08-21 at 08:22 +0200, Magnus Fromreide wrote: > On Thu, 2009-08-20 at 11:43 -0700, dan anderson wrote: > > I'm looking at net-snmp-5.4.2/agent/snmp_agent.c and addrCache within. > > As far as I can tell, while this cache is initialized and maintained > > by the agent, it's never actually *accessed* beyond keeping it up to > > date. Is this vestigial code that the agent has evolved past needing? > > In 5.5 RC1's snmp_agent.c also never uses the cache for anything, and > > since it's static it shouldn't be visible outside of that file. > > It looks like you are right. > > So, what are the thoughts of the list? > Should we remove the address cache? > Should we start using it?
I have now looked further and it seems that the function of the address cache is to rate limit the number of LOG_INFO: Received SNMP packet(s) from <address> log messages that get generated if either one of the -a option, the -d option or the -V option are enabled. The logs are rate limited to one every fifth minute or when ten different hosts have connected to the agent Now, if this is a functionality that is worth having or not is the big questions. /MF ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Net-snmp-coders mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
