problem using snmp_parse_args

Vinod Nanjaiah <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <174230991E95D743B0C91DF471EF44E8436DD2EC61@MTW02MSG02.mindtree.com>
Hi,
Has anyone faced any problems in using snmp_parse_args?
This is used in the snmptrap.c file.

I am trying to send trap from an ARM board to a host pc.
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.

Is this a bug in netsnmp or a problem with the arguments that I am passing?

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

Thank you!
Vinod


________________________________
http://www.mindtree.com/email/disclaimer.html

------------------------------------------------------------------------------
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
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.