On Wed, Aug 25, 2004 at 09:38:52AM -0400, Robert Story wrote:
> On Wed, 25 Aug 2004 09:55:43 +0100 Dave wrote:
> DS> I'd submitted the changes for the first of these, but didn't think
> DS> that I'd touched the other two.   So I was a little suprised when
> DS> Magnus reported this problem - particularly when I searched my
> DS> code and didn't find any mention of "agentx:snmpd" anywhere.
> 
> Here is a hint:
> 
> agent/agent_read_config.c:207:        snprintf(buf, BUFSIZ, "agentx:%s", app);
> 
> 
> Magnus, a simple patch to get back to a single token would be:

Yes. Another version is to ignore NETSNMP_DS_LIB_APPTYPES (with S) in
snmplib/read_config.c::read_config and only assign type the value of
NETSNMP_DS_LIB_APPTYPE.

NETSNMP_DS_LIB_APPTYPES seems to be the sum of all types of config that is to
be read while
NETSNMP_DS_LIB_APPTYPE seems to be the 'natural' type that is parsed.

but I do agree that I do not understand the exact implications of them.

Oh yes, i think your patch would prevent parsing of agentx tokens in the
agentx.conf file.


-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
_______________________________________________
Net-snmp-coders mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to