2009/5/19 Vinod Nanjaiah <vinod_nanja...@mindtree.com>:
> When control comes to snmp_parse_args, it messes up the argc and argv
> parameters and the
> program seg faults at a later point when the argv is referenced.

> This is the argv that I am using
>
> char com[] = ”public”;
> char *argv[] = {"", "-v", "1",  "-c", com, "172.22.92.10", "", "", "2", "", 
> ""};


I've had a quick look at the code for snmp_parse_args.
The most likely issue here is that this routine attempts to
zero out "sensitive" parameters (such as the community
string, security name or the two pass phrases).
This is to avoid them being visible in the output of "ps" or in core dumps.


Untested, but you might want to try setting the first parameter
to be "snmpd-proxy".   This will suppress the clearing of these
sensitive parameters.
   (We could perhaps do with a better way to handle this!)

Dave

------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables 
unlimited royalty-free distribution of the report engine 
for externally facing server and web deployment. 
http://p.sf.net/sfu/businessobjects
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Reply via email to