2008/5/18 Magnus Fromreide <[EMAIL PROTECTED]>:
> The interesting thing from my point of view is that scalar registers
> <oid> and answers with the value for <oid>.0 and with NO_SUCH_OBJECT
> otherwise

Does it?  I must check and fix that.
It ought to return noSuchInstance for <oid>.<non-0> requests.

>      whereas scalar_group registers <oid> and answers with the
> value for <oid>.<index>.0 and with NO_SUCH_OBJECT otherwise.

That ought to return noSuchInstance for <oid>.<valid>.<non-0>
and noSuchObject for <oid>.<non-valid>.*


> I expected scalar_group to register <oid>.<indices> and thus work like
> scalar but with a nonzero ubound and uindex.

No - the scalar helper is registering a single MIB object
(and handles both valid and invalid instance subidentifiers)
The scalar group helper registers a subtree containing multiple MIB objects
(and handles both valid and invalid objects, as well as instances)

Moving from instance to scalar to scalar group, you're moving
one step up the OID tree each time.

But I'll have a proper look at this tomorrow.

Dave

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft 
Defy all challenges. Microsoft(R) Visual Studio 2008. 
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to