Hi all!
File read_config.c
When I calling register_prenetsnmp_mib_handler() with "type" parameter
equal to "snmp:snmpapp:..." it calls internal_register_config_handler()
with "when" parameter equal to PREMIB_CONFIG.
internal_register_config_handler() for processing "type_param" which
equal to "snmp:snmpapp:..." calls recursively
register_config_handler() which calls internal_register_config_handler()
with "when" parameter equal to NORMAL_CONFIG.
I mean PREMIB_CONFIG handler becomes NORMAL_CONFIG handler.

in internal_register_config_handler()
/*
* Handle multiple types (recursively)
*/
if (strchr(type, ':')) {
struct config_line *ltmp2 = NULL;
char buf[STRINGMAX];
char *cptr = buf;
strncpy(buf, type, STRINGMAX - 1);
buf[STRINGMAX - 1] = '\0';
while (cptr) {
char* c = cptr;
cptr = strchr(cptr, ':');
if(cptr) {
*cptr = '\0';
++cptr;
}
-- line 174 ltmp2 = register_config_handler(c, token, parser, releaser, help);
++ ltmp2 = internal_register_config_handler(c, token, parser, releaser, help, when);
}
return ltmp2;
}


Aleksandr Lomanov
ICQ#: 170411676


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/...et-snmp-coders