On 1 February 2012 01:33, baicaiaichibaicai <[email protected]> wrote: > I have problem with netsnmp_subtree_load when i learn snmpd code: > > 1.what's the effect of this function
It's part of the internal workings of the agent, used to build up a list of which MIB handler should be used for a given OID, when a request is received. It's not really intended to be called directly. You should use one of the "register_mib" API calls (if using the older UCD style code) or "netsnmp_register" calls (for v5 helper-style code) > 2. how doese these case work: [snip] The fragment you posted is concerned with setting up the basic OID tree structure (i.e. .0, .1 and .2 branches) when processing the first MIB registration in a new context. Dave ------------------------------------------------------------------------------ Keep Your Developer Skills Current with LearnDevNow! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-d2d _______________________________________________ Net-snmp-coders mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
