securityEngineId problem in 5.7.1
"Stone, Thomas" <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <87EED87940E96B4FB9259F712AA263D423AA03E73F@alexandra> |
I'm cross-compiling for 32-bit embedded environment. After modifying the configure file sufficiently so that the application builds and starts, the initial trap that should get sent to the SNMP server isn't going out. On inspection, it appears that the code for sending the trap ends up calling usm_get_user_from_list in snmpusm.c The passed user list is declared at the top of snmpusm.c as a "static struct umUser *userList = NULL:" The user that is being passed into the function was parsed by netsnmp_parse_args as I see the engineID being sent to the run_config_handler function in read_config.c with the token "trapsess". I tried adding the line "usm_create_user_from_session(ss);" to add_trap_session to force the securityEngineID into the userList in smnpusm.c. This hasn't worked since the securityEngineIDLen being passed to usm_get_user_from_list = 1, not the value 9 that was stored in the list; although my traces show that the full name is properly received. I suspect that I'm missing something rather basic since there shouldn't be any need to add the usm_create_user_from_session call into add_trap_session. Any suggestions on where I should be concentrating my efforts would be appreciated. Thanks in advance. Thomas Stone The information contained in this electronic mail transmission may be privileged and confidential, and therefore, protected from disclosure. If you have received this communication in error, please notify us immediately by replying to this message and deleting it from your computer without copying or disclosing it. ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Net-snmp-users mailing list [email protected] Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users