On Mon, 2005-11-07 at 12:46 +0200, Michael G wrote: > I have defined a new enterprise mib. > I used mib2c tool to generate some c code files. > I have used the new net-snmp style option. > > How can I hook the new code to the tree? I mean I don't see code > generated that will allow the agent to call the functions when the > request will be made.
Your initialisation routine would typically include a call to netsnmp_create_handler_registration() which includes both the name of the handler routine to process requests, and the OID of the table concerned. This is then registered using a call of the form: register_{handler}_table() The exact details of this call ill depend on which table helper is being used, but this general structure is common to most (all?) v5-style table registrations. Dave ------------------------------------------------------- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42" plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php _______________________________________________ Net-snmp-coders mailing list Net-snmp-coders@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/net-snmp-coders