Re: stash_cache helper

2005-01-11 Thread Dave Shield
sh_cache is injected. And I really don't want to put special-case code into 'netsnmp_inject_handler' ! Wes> Why not parallel the way the bulk_to_next handler does it? Because that's relevant for *every* handler chain - it's not tightly linked to a particular helper. I

Re: stash_cache helper

2005-01-10 Thread Wes Hardaker
handlers, and inject these two into the handler chain that'd be acceptable in my eyes. Dave> [ assuming 'netsnmp_inject_handler' supports Dave> working with more than one handler, of course ] But that'd need to be fixed, as I don't think it does. Dave>

Re: stash_cache helper

2005-01-10 Thread Dave Shield
the stash_cache and stash_to_next handlers, and inject these two into the handler chain [ assuming 'netsnmp_inject_handler' supports working with more than one handler, of course ] c) Merge 'stash_to_next' into the main stash_cache helper Oh, and I

Re: stash_cache helper

2005-01-09 Thread Wes Hardaker
> On Fri, 07 Jan 2005 12:52:00 +, Dave Shield <[EMAIL PROTECTED]> said: Dave> Firstly, adding this stash-caching to an existing MIB Dave> relies on injecting the stash-cache handler *after* having Dave> registered the handler chain with the main agent (so that Dave> the stash-cache kicks i

Re: stash_cache helper

2005-01-07 Thread Coders
On Fri, 07 Jan 2005 14:54:44 + Dave wrote: DS> > Maybe netsnmp_inject_handler_before() ? DS> DS> I wondered about that. DS> The main reason I didn't use that API is that it seemed a bit DS> inefficient to search the handler chain when I already knew DS> where I wanted the new handler to go! W

Re: stash_cache helper

2005-01-07 Thread Dave Shield
On Fri, 2005-01-07 at 14:37, Robert Story wrote: > On Fri, 07 Jan 2005 12:52:00 + Dave wrote: > DS> Secondly, I've tweaked the stash-cache handler to automatically > DS> inject the new stash-to-next handler into the chain if it > DS> detects that this is needed. This involved manipulating the

Re: stash_cache helper

2005-01-07 Thread Coders
On Fri, 07 Jan 2005 12:52:00 + Dave wrote: DS> Secondly, I've tweaked the stash-cache handler to automatically DS> inject the new stash-to-next handler into the chain if it DS> detects that this is needed. This involved manipulating the DS> 'next' and 'prev' links directly, which feels: DS>

stash_cache helper

2005-01-07 Thread Dave Shield
Wes, as you may have noticed, I've just submitted a couple of patches to extend the behaviour of your "stash_cache" helper, and allow it to work with stash-ignorant MIB modules. But there are a couple of things I wanted to check with you regarding the basic handler-cha