[AGENT++] find_succ
Karl Abicht
karl at abicht.info
Sat Nov 20 07:50:00 CET 2004
Hi Frank,
in our agent the accessibility of a leaf depends on the operation mode of
the underlying system. And, sometimes in some cases a leaf which is normally
READONLY then should be NOACCESS-ible.
Regards,
Karl
> 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
> >
> >
> >
>
>
--
Dipl.-Ing. Karl Abicht
Eichenweg 11
25582 Hohenaspe
mailto: karl at abicht.net
phone: +49 4893 373115
mobile: +49 172 4566432
site: http://www.abicht.net
--
Dipl.-Ing. Karl Abicht
Eichenweg 11
25582 Hohenaspe
mailto: karl at abicht.net
phone: +49 4893 373115
mobile: +49 172 4566432
site: http://www.abicht.net
More information about the AGENTPP
mailing list