> I think I'm going to wait on Dave for this one, as I believe I may have
> been barking up the wrong tree with my patch, and led you astray.
>
> My patch made the config code parse the same file with different types.
> I think the idea is actually to parse different files (eg snmpd.conf &
> agentx.conf). Is that right, Dave?
Yes - that's the idea.
At the moment, an application declares that it's a particular type
("I'm an 'snmpd' type application") and will then read in a single set
of config files, specific to that application type ("snmpd.conf").
Plus the common library config settings ("snmp.conf") of course.
The idea here is that an application can declare a *list* of types
("I'm an 'snmpd' type application *and* an 'agentx' type application),
and will read in the config files relevant to any of these.
This involves three elements:
- read_config must be able to parse a list of app tokens,
rather than just a single one
- the application must declare itself appropriately
- the config handlers must register the type (or types)
that they are relevant to.
I'd submitted the changes for the first of these, but didn't think
that I'd touched the other two. So I was a little suprised when
Magnus reported this problem - particularly when I searched my
code and didn't find any mention of "agentx:snmpd" anywhere.
I probably need to download a clean copy of the CVS code, and
see whether I can reproduce this problem.
Dave
-------------------------------------------------------
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