On 29/02/2008, Vishal Nandanwar wrote:
> Can anybody tell me, where is the code written to handle the max number of
> resend request completed for trapsess?

The code for processing the "-r" flag (for command-line tools or the
"trapsess" directive) is in the file snmplib/snmp_parse_args.c
(around line 370 in the current code)

The code for deciding whether or not to resend a request is in
the file snmplib/snmp_api.c (around line 6320)

The code for setting the default number of retries is also in
snmplib/snmp_api.c (line 188 and lines 1203/4)

There shouldn't normally be any need to change this code.

> I am using Net-SNMP-5.2.1

That is a very old version (and not even the most recent release
on the 5.2.x line). You should probably consider upgrading.
Note that the line numbers above will almost certainly not match
this ancient code.


This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
Net-snmp-users mailing list
Please see the following page to unsubscribe or change other options: