On Sun, Nov 20, 2005 at 10:44:13AM -0500, Robert Story wrote:
> On Sun, 20 Nov 2005 11:41:26 +0100 Magnus wrote:
> MF> It seems to be that code in agent_module_shutdown.h is dead,
> 
> What do you mean by dead?

No other file includes that file.

> MF> #ifdef USING_AGENTX_SUBAGENT_MODULE
> MF>    if (netsnmp_ds_get_boolean(NETSNMP_DS_APPLICATION_ID, 
> MF>                          NETSNMP_DS_AGENT_ROLE) != SUB_AGENT)
> MF> #endif
> MF>    {
> MF> #include "agent_module_shutdown.h"
> MF>    }
> MF> 
> MF> first in shutdown_agent() (agent/snmp_vars.c:355)
> 
> I don't think so. The callback is only registered in init_mib_modules, which
> is called directly in snmpd.c (not in init_agent), and thus a subagent should
> never see this function called.

The mib modules get initialized in init_mib_modules (agent/mib_modules.c:78)
and are shutdown in _shutdown_mib_modules (same file, line 62).

The agent modules are initialized towards the end of
init_agent (agent/snmp_vars.c:345) but are never shut down. If there should be
a callback or something else I don't know, but I think there should be
something.

/MF


-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.  Get Certified Today
Register for a JBoss Training Course.  Free Certification Exam
for All Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to