Hi,
As part of IPV6 support, I was trying to upgrade the snmp version from ucd
4.2 .x to net-snmp 5.2.1. As part of that, I did the following things on
linux:
1) issued the configure --enable-ipv6 on command line - for enabling ipv6
2) make
Once this is done, I copied the libnetsnmp.a to the lib location and
modified the header files to reflect it to the net-snmp header files,
instead of ucd.
After doing all this, when I ran my application, it generated the following
core.
#0 0x0080a083 in strchr () from /lib/tls/libc.so.6
#1 0x08f399f5 in internal_register_config_handler (type_param=0xbfff9ab5
"", token=0x946070f "defDomain",
parser=0x8f49400 <netsnmp_register_user_domain>, releaser=0x8f49530
<netsnmp_clear_user_domain>,
help=0x94606fc "application domain", when=0) at read_config.c:161
#2 0x08f39c13 in register_config_handler (type=0x0, token=0x0, parser=0,
releaser=0, help=0x0) at read_config.c:288
#3 0x08f39a61 in internal_register_config_handler (type_param=0x9460719
"snmp:", token=0x946070f "defDomain",
parser=0x8f49400 <netsnmp_register_user_domain>, releaser=0x8f49530
<netsnmp_clear_user_domain>,
help=0x94606fc "application domain", when=0) at read_config.c:174
#4 0x08f39c13 in register_config_handler (type=0x0, token=0x0, parser=0,
releaser=0, help=0x0) at read_config.c:288
#5 0x08f49d16 in netsnmp_register_service_handlers () at snmp_service.c:342
#6 0x08f200a4 in init_snmp (type=0x0) at snmp_api.c:829
This is because, NULL value was passed as the argument to init_snmp api.
This used to work fine in UCD 4.2.X. Now it seems, that it is mandatory to
pass some value to the type argument in init_snmp api.
If so, then can you please let me know, what is the value that I have to
pass to init_snmp to avoid reading configuration files etc.
Thanks in advance for doing this favour.
--
Thanks & Regards
Dev
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders