Re: addrCache

2009-08-26 Thread Magnus Fromreide
On Wed, 2009-08-26 at 10:18 -0700, Wes Hardaker wrote: > > On Tue, 25 Aug 2009 19:33:00 +0200, Magnus Fromreide > > said: > > >> You mean like: > > Whoops. Ha. > > MF> But that one affects the logs on line 917 and 934 (of snmp_agent.c). > > MF> I am talking about the log on line 831

Re: addrCache

2009-08-26 Thread Wes Hardaker
> On Tue, 25 Aug 2009 19:33:00 +0200, Magnus Fromreide > said: >> You mean like: Whoops. Ha. MF> But that one affects the logs on line 917 and 934 (of snmp_agent.c). MF> I am talking about the log on line 831 which is controlled by the global MF> variable log_addresses which is enabl

Re: addrCache

2009-08-25 Thread Magnus Fromreide
On Tue, 2009-08-25 at 19:12 +0200, Thomas Anders wrote: > Wes Hardaker wrote: > > I think at this point we should have a config token that at least allows > > turning off the logging entirely (which can then also shutdown the cache > > maintenance). > > You mean like: > > foo# snmpd -H 2>&1 | gre

Re: addrCache

2009-08-25 Thread Thomas Anders
Wes Hardaker wrote: > I think at this point we should have a config token that at least allows > turning off the logging entirely (which can then also shutdown the cache > maintenance). You mean like: foo# snmpd -H 2>&1 | grep -i dontlog dontLogTCPWrappersConnects (1|yes|true|0|no|false) foo#

Re: addrCache

2009-08-25 Thread Wes Hardaker
> On Sun, 23 Aug 2009 19:22:52 +0200, Magnus Fromreide > said: MF> I have now looked further and it seems that the function of the address MF> cache is to rate limit the number of MF> LOG_INFO: Received SNMP packet(s) from Yep. That was put in because of the number of people that had

Re: addrCache

2009-08-23 Thread dan anderson
2009/8/23 Magnus Fromreide : > 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 > log messages Oh, the line 'snmp_log(LOG_INFO, "Received SNMP packet(s) from %s\n", addr);'? I thought that loggi

Re: addrCache

2009-08-23 Thread Magnus Fromreide
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 actua

Re: addrCache

2009-08-20 Thread Magnus Fromreide
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 cod