On 18/01/2008, vsaavedra <[EMAIL PROTECTED]> wrote:
> setspinLock : before increment: 1
> setspinLock : after increment: 2
> *((long*)data->data.voidp) = 2
>
> But, if I do a snmpset to the lock object, the value returned is 1.

Yes - that's correct.
The behaviour of the TestAndIncr object is that the SET command
should supply the current value, so this is also what is returned
in the response to that SET.
   Conceptually, the spinlock value is only incremented *after*
the request has been processed.

If you follow the SET with a GET request on the same instance,
then you should see the new value (2).

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-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Reply via email to