[AGENT++] find_succ

Frank Fock fock at agentpp.com
Thu Nov 18 20:44:11 CET 2004


Hi Karl,

I see no reason why one would add a not-accessible leaf to
a Mib instance? Could you please explain what you are trying
to accomplish with a not accessible leaf?

Thanks,
Frank

Karl Abicht wrote:

>Hi,
>
>your code:
>
>Oidx MibTable::find_succ(const Oidx& o, Request*)
>{
>        ThreadSynchronize s(*this); {
>		MibLeaf* l = find_next(o);
>		while ((l) &&
>		       ((l->get_access() == NOACCESS) ||
>			(!l->valid()))) {
>		    l = find_next(l->get_oid());
>		}
>		if (l) {
>		    return l->get_oid();
>		}
>		return Oidx();
>	}
>}
>
>It was a good idea to change to this behavoir.
>But, this fixes the problem just inside of MibTables.
>
>Is it possible to do this similar for normal MibLeafs in the Mib ?
>Otherwise a 'walk' stops at the first invalid or not accessible leaf.
>
>
>
>Regards,
>
>Karl Abicht
>
>  
>





More information about the AGENTPP mailing list