Dave Shield wrote:
> Good catch!
> Try the following tweak to the code, and see if it fixes the problem:
>
>> 419 if (netsnmp_ds_get_boolean(NETSNMP_DS_LIBRARY_ID,
>> NETSNMP_DS_LIB_16BIT_IDS))
>> 420 retVal &= 0x7fff; /* mask to 15 bits */
>> 421 else
>> 422 retVal &= 0x7fffffff; /* mask to 31 bits */
>
> if (!retVal) {
> retVal = 2;
> Reqid = retVal;
> }
> return retVal;
>
>
> (This really needs locking around the Reqid assignment,
> but let's see whether it works properly first).
>
> Dave
Hi Dave,
yes - this seems to work for the repeated snmpwalk tests (no failures
after 40 tests - previously got one every 5-15 tests). The original
application will have to run for 9 hours before I can verify that is
fixed too - but it is running fine now.
Many thanks,
Craig
__________ Information from ESET Smart Security, version of virus signature
database 4329 (20090812) __________
The message was checked by ESET Smart Security.
http://www.eset.com
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders