Re: snmptrapd.c

th exterit <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
Thanks Dave,

Stripped a lot out of snmptrapd.c and added my own trap_handler_callback()
function and it prints traps out to the console.

For anyone else looking for a stripped down version of snmptrapd.c to build
from, see here - http://pastebin.com/2ZxVLUPP

There's probably more to get rid of but at least it's working.

Thanks.

On Fri, Feb 4, 2011 at 2:57 PM, Dave Shield <[email protected]>wrote:

> On 3 February 2011 16:36, th exterit <[email protected]> wrote:
> > Trying to strip snmptrapd.c down to the essentials.  I just want to be
> able
> > to receive traps and print them to the terminal for now.
> >
> > Here is what I have so far: http://pastebin.com/7W6Gc7ne
> >
> > I am trying to compile this to test.  I don't expect it to work yet.
>
> Rather than strip everything out, and then trying to check why
> it doesn't work.    Why don't you start with the full 'snmptrapd'
> code, and delete one block at a time - checking that it still
> compiles at each stage?
>
>   That way you can work your way down to the minimal framework,
> and if you delete something that's essential, then you'll spot it
> straight away.
>
> Dave
>

------------------------------------------------------------------------------
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb

_______________________________________________
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.