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?
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.
--
Robert Story; NET-SNMP Junkie
Support: <http://www.net-snmp.org/> <irc://irc.freenode.net/#net-snmp>
Archive: <http://sourceforge.net/mailarchive/forum.php?forum=net-snmp-coders>
You are lost in a twisty maze of little standards, all different.
-------------------------------------------------------
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