On 07/10/2007, Alef Veld <[EMAIL PROTECTED]> wrote:
> I'm trying to integrate the net-snmp snmptrapd.c to my own
> application, and i would like to be able to pass received traps from
> snmptrapd.c to display in my own eventviewer. I don't want to use a
> traphandle.....    Is there any way to pass a
> already parsed trap to my own function ?

That's effectively what the traphandle routines are intended for.
You could write a simple Netsnmp_Trap_Handler wrapper, that
just passes the pdu parameter to your own function (or however
you need the information).

See apps/snmptrapd_handlers.c for the API details.
(e.g. 'print_handler()', etc)

Dave

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to