On Tue, 2011-12-13 at 09:57 +0800, 梅亮 wrote: > Hi NET-SNMP coders, > > > There is something about parsing snmpd.conf for proxy agent that I > need to ask for your input. I have successfully enabled proxy agent by > following the link of > http://www.net-snmp.org/wiki/index.php/Snmpd_proxy . But I am > confused as to how net-snmp parses the snmpd.conf, especially for the > proxy agent related configurations, namely, the "proxy xxx" > statement. > > > I understand that the "proxy xxx" statement is parsed > in agent/mibgroup/ucd-snmp/proxy.c. But what I cannot understand is > how this file is being included in the snmpd. init_proxy() is called > in win32/mib_module_inits.h. but win32/mib_module_inits.h seems to be > only working on win32 platform. So would you please help clarify as to > how init_proxy gets called in the processing chain of a incoming SNMP > pdu on net-snmp? Thanks a lot
init_<module> is called from agent/mibgroup/mib_module_inits.h and that file is in turn included from agent/mib_modules.c, just like you noticed. The interesting part is where agent/mibgroup/mib_module_inits.h comes from - that file is generated by configure, specifically configure.d/config_modules_agent using way to much shell scripting and so that file will end up in $builddir/agent/mibgroup, not $srcdir/agent/mibgroup. /MF ------------------------------------------------------------------------------ Systems Optimization Self Assessment Improve efficiency and utilization of IT resources. Drive out cost and improve service delivery. Take 5 minutes to use this Systems Optimization Self Assessment. http://www.accelacomm.com/jaw/sdnl/114/51450054/ _______________________________________________ Net-snmp-coders mailing list Net-snmp-coders@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/net-snmp-coders