2009/4/15 Geoffrey Bays <[email protected]>:
> I took a look at snmptrapd_handlers.c
> dropauth and SyslogTrap are extern ints in snmptrapd_handlers.c.
> But they are not initialized there. So they should be initialized in some
> other module.

In the 5.4.x line, these two variables are actually initialised in the main
application - snmptrapd.c
   With the current development branch (which is available as 5.5.pre1),
this has been changed so that these variables are defined (and initialised)
in snmptrapd_handlers.c, and are now "extern int" in the main application.


> The event_input function is referenced in snmptrapd_handlers.c,
> but defined in snmptrapd.c, and snmptrapd_handlers does
> not include snmptrapd.h.

This routine is a special-case handler for one particular set of traps.
It has been dropped completely from the current development branch.


> Cannot find num_received anywhere.

This is a (static) variable, within the MIB module "notification_log".
As such, it is included within the 'libnetsnmpmibs' library.
But that seems to be the only place where it is occurs, so I don't
understand why the compiler is complaining about it.

Unless it *is* the fact that the variable is defined as static.
It might be worth tweaking this declaration (from
agent/mibgroup/notification-log-mib/notification_log.c)
to drop the "static" modifier, and re-compile the library.
See whether that helps at all.

Dave

------------------------------------------------------------------------------
Stay on top of everything new and different, both inside and 
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today. 
Use priority code J9JMT32. http://p.sf.net/sfu/p
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to