Hi all, I tried to write an application(.exe) to parse snmpd.conf. The source file I wrote is as attached file "trap.c". Now my trap.c should only find "trapsink" and "trap2sink". I modified the Makefile downloaded from NET-SNMP Tutorials to build trap.c as a .exe file. (I also attached the Makefile)
Question 1: When I run "make trap.exe" and execute "./trap.exe", there will be a memory error occured. Why? Question 2: If I build trap.c as a.out, it shows "libnetsnmp.so.15: cannot open shared object file ..." when I execute "./a.out". But the libnetsnmp.so.15 is actually in /usr/lib/. Why I got this error? Question 3: How should I modify my Makefile to build my trap.c as an executable successfully? Question 4: I think I can use snmpd_store_config to add a new line in snmpd.conf. Is there any API can remove a line from snmpd.conf? For example, if my trap.c find a trapsink and I want to remove this line. How can I do this? Thanks,
trap.c
Description: Binary data
Makefile
Description: Binary data
------------------------------------------------------------------------- Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW! Studies have shown that voting for your favorite open source project, along with a healthy diet, reduces your potential for chronic lameness and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________ Net-snmp-coders mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
