Link for Net-SNMP API?

I am currently developing a monitoring application for some of my own hardware using net-snmp. I have some code that works somewhat when calling snmp_pdu_free()my segfaults code. I am creating a pdu structure with snmp_create_pdu(). I need an API link to see if I really write my code correctly, but I could not find it. The best I've found are the tutorials on the net-snmp website, but they don't really help determine if my code is correct when I debug it.

+5
source share
3 answers

There are MAN pages for net-snmp, try it man snmp-free-pdu. If this does not help, the source code for 5.3.3 can be downloaded here:

http://sourceforge.net/projects/net-snmp/files/net-snmp/5.3.3%20source%20code/net-snmp-5.3.3.zip/download

+2
source

Net-SNMP documentation is not very useful, unfortunately. In general, the API works with an error, but it works.

Besides net-snmp.org and the mailing list, this is the only useful Net-SNMP related link that I found useful:

http://www.cuddletech.com/articles/snmp/index.html

Also sign up for the net-snmp-coders mailing list. He is very active, and you can get feedback directly from the authors of Net-SNMP.

http://www.net-snmp.org/support/mailinglists.html

Good luck.

+4
source

snmp_free_pdu(), PDU, snmp_create_pdu(). , , snmp_synch_response().

In fact, stated in the comments :

pdu is freed by snmp_send () if a failure does not occur.

I personally think this is an awkward design decision, but it's too late.

+1
source

All Articles