aboutsummaryrefslogtreecommitdiffstats
path: root/lib/snmp/src/agent
AgeCommit message (Collapse)Author
2018-09-07[snmp] Update copyright end dateMicael Karlberg
OTP-15287 (ERIERL-206)
2018-09-07[snmp] Corrected (agent) ATL logging of outgoing messagesMicael Karlberg
For some outgoing messages (not response) the following error(s) has been corrected: * encrypted: logged incorrectly, should have written the v3-header and the scoped pdu, but was actually logged as-is (encrypted), making conversion impossible. * un-encrypted: messages was not logged at all. OTP-15287 (ERIERL-206)
2017-06-14Update copyright yearHans Nilsson
2017-05-11snmp_generic: Future-proof exception handling codeBjörn Gustavsson
In the future, erlang:get_stacktrace/0 will probably only work inside a the 'catch' block of a 'try' expression. Future-proof the code by rewriting the old-style catch to a try...catch.
2016-06-22Fix ERL-164 for agent, vacm, and usm config filesDaniel Goertzen
2016-03-15update copyright-yearHenrik Nord
2016-01-21Snmp agent vacmViewTreeFamily with non 'null' mask bugfixIngela Anderton Andin
Adresses problems desciribed in http://erlang.org/pipermail/erlang-bugs/2015-April/004891.html http://erlang.org/pipermail/erlang-patches/2015-April/004766.html The original patch also suggested the following fix. However we need more information to be able to understand if this is correct or not, and it does not have priority at the moment for us to investigate. @@ -816,7 +816,7 @@ next_node(D, {tree, Tree, {table_entry, _MibName}}, "~n RevOidSoFar: ~p" "~n MibView: ~p", [size(Tree), Oid, RevOidSoFar, MibView]), OidSoFar = lists:reverse(RevOidSoFar), - case snmpa_acm:is_definitely_not_in_mib_view(OidSoFar, MibView) of + case snmpa_acm:is_definitely_not_in_mib_view(OidSoFar ++ Oid, MibView) of true -> ?vdebug("next_node(tree,table_entry) -> not in mib view",[]), false;
2015-06-18Change license text to APLv2Bruce Yinhe
2015-05-06Merge branch 'maint'Zandra Hird
Conflicts: OTP_VERSION erts/vsn.mk lib/test_server/src/erl2html2.erl
2015-04-30Improve agent fix as in managerRaimo Niskanen
2015-04-24snmp: Change to random use crypto. Remove use of erlang:nowErland Schönbeck
2015-04-23Use port 0 with {fd,Fd}, use snmpm_fd in managerRaimo Niskanen
2014-09-03Clean up some config wartsRaimo Niskanen
2014-08-22Clean up config error handling and negative resultsRaimo Niskanen
2014-08-07Fix error printouts to not crashRaimo Niskanen
2014-08-05Improve ct_snmp test casesRaimo Niskanen
2014-07-30Use {ipv6_v6only, true}Raimo Niskanen
2014-07-25Remove commented out codeRaimo Niskanen
2014-07-25Silence logging from agent net_if at shutdownRaimo Niskanen
2014-07-25Rewrite agent for IPv4 + IPv6Raimo Niskanen
2014-07-25Add testcases and do related fixesRaimo Niskanen
2014-07-25Mend write_config_file and append_config_fileRaimo Niskanen
2014-07-25Rewrite ordering functions for maintainabilityRaimo Niskanen
2014-07-25Rewrite string representation of addresses and stop printing an error report ↵Raimo Niskanen
when snmpa_net_if gets externally killed
2014-07-25Don't encode IPv6 address into v1 trap and fix legacy arguments to ↵Raimo Niskanen
snmpa_network_interface_filter functions
2014-07-25wip: Testcase feedbackRaimo Niskanen
2014-07-25wip: Fix agent loggingRaimo Niskanen
2014-07-25Go back to passing (Domain, Addr) to net_if filtersRaimo Niskanen
2014-07-25fix agent configuration detailsRaimo Niskanen
2014-07-25Rewrite agent to use {Domain,Address} tuples as far as possibleRaimo Niskanen
2014-07-25wip: passes all regression testsRaimo Niskanen
2014-07-25wip-all-regression-tests-but-one-managerRaimo Niskanen
2014-07-22wipRaimo Niskanen
2014-07-22Rewrite agent configuration parsingRaimo Niskanen
2013-11-19Merge branch 'bmk/snmp/blocking_log_during_conversion' into ↵Micael Karlberg
bmk/snmp/snmp425_integration Conflicts: lib/snmp/src/app/snmp.erl
2013-11-19[snmp] Cleanup and changed atl conversion block defaultMicael Karlberg
Changed the default value for the Audit Trail Log conversion to true. Also some cleanup. OTP-11396
2013-10-21Merge branch 'bmk/snmp/aes_encryption_fixes/OTP-11412' into ↵Micael Karlberg
bmk/snmp/snmp425_integration Conflicts: lib/snmp/doc/src/notes.xml
2013-10-21[snmp/manager] Incorrect use of EngineBoots and EngineTime when encryptingMicael Karlberg
When performing the AES encryption, invalid values for the EngineBoots and EngineTime was used. The values of the local agent was used, which would have produced some values if an agent was actually running. If not it would have caused a crash. OTP-11413
2013-10-11[snmp] Commented out (currently) unused upgrade/downgrade functionMicael Karlberg
2013-10-11Merge branch 'bmk/snmp/blocking_log_during_conversion' into ↵Micael Karlberg
bmk/snmp/snmp425_integration Conflicts: lib/snmp/doc/src/notes.xml lib/snmp/src/app/snmp.erl
2013-10-11[snmp] Add (atl) log conversion block optionMicael Karlberg
It is now possible to request that the Audit Trail Log should be blocked during conversion (log_to_txt or log_to_io). This could be usefull when coverting a large log (when there is a chance it may otherwise wrap during conversion).
2013-10-09[snmp] Add proper version, release nodes and appupMicael Karlberg
Also fixed copyright end date. OTP-11352
2013-10-09[snmp/agent] enable SNMP to create missing database directoriesSteve Vinoski
Add {db_init_error, create_db_and_dir} option to SNMP manager and agent. This allows them to create any missing parent directories for db_dir, rather than treating any missing directories as a fatal error. The default for db_init_error, which is terminate, is unchanged. Add create_db_and_dir to the documentation. Add new tests to verify that using create_db_and_dir results in missing parent directories being created.
2013-09-03[snmp/agent] Improved loading and unload of MIBsMicael Karlberg
Improved the documentation of the loading and unloading of MIBs (plural). also added functions for loading and unloading a single mib. OTP-11216
2013-07-04Merge branch 'bmk/snmp/agent/ldb_counter_wrap/OTP-11192' into ↵Micael Karlberg
bmk/snmp/snmp4241_integration/r16 Conflicts: lib/snmp/doc/src/notes.xml lib/snmp/src/app/snmp.appup.src
2013-07-04[snmp/agent] Cleanup, renaming, appup, proper version and release notesMicael Karlberg
Add utility functions for checking view masks. Code cleanup, function renaming and comment fix (%% instead of %). Also updated the mask check in the vacm config file check function. Finally, release notes and some cosmetic changes to the agent config-file(s) user guide chapter.
2013-07-03[snmp/agent] Local DB counter increment wrap errorMicael Karlberg
The counter increment function in the local-db was incorrect. It did not handle counter wrap correctly. OTP-11192
2013-06-24Merge branch 'sze/fix-vacm' into bmk/snmp/agent/fix_vacm_mask/OTP-11177Micael Karlberg
2013-06-12Update copyright yearsBjörn-Egil Dahlberg
2013-06-10SNMP/VACM: bugfix for vacmViewTreeFamilyMaskStefan Zegenhagen
Dear all, it's almost a year since I sent the patch attached to this e-mail, and I just found out that I have not yet gotten a response to it. I would consider this patch important because it fixes an issue with the interpretation of data that might be critical for SNMPv3 operation. I confirmed at that time that erlangs interpretation of vacmViewTreeFamilyMask is indeed not interoperable with other SNMP stacks. Kind regards, > > > the implementation of SNMP-VIEW-BASED-ACM.mib assumes that the input for > > > vacmViewTreeFamilyMask is an OID consisting of 1's and 0's only to form > > > the mask. However, the MIB states that the input should be a bitstring. > > > > > > The OID representation of the mask is useful in the code as it speeds up > > > time-critical code paths when checking access permissions for EACH SNMP > > > access. Reading/writing the view mask objects is less time-critical. > > > > > > Therefore, to fix the issue, convert between OID representation and > > > bitstring when the vacmViewTreeFamilyMask objects are accessed. This is > > > done by the patch attached to this e-mail. > > > I'm very sorry for the troubles that I am causing but it seems that the > previous version of the patch did more than it should: the OID-bitstring > conversion was also applied to other tables in the same MIB on > get/get-next requests. > > The version of the patch that is attached to this e-mail restricts the > OID-bitstring conversion to vacmViewTreeFamilyMask alone. -- Dr. Stefan Zegenhagen arcutronix GmbH Garbsener Landstr. 10 30419 Hannover Germany Tel: +49 511 277-2734 Fax: +49 511 277-2709 Email: [email protected] Web: www.arcutronix.com *Synchronize the Ethernet* General Managers: Dipl. Ing. Juergen Schroeder, Dr. Josef Gfrerer - Legal Form: GmbH, Registered office: Hannover, HRB 202442, Amtsgericht Hannover; Ust-Id: DE257551767. Please consider the environment before printing this message. >From aa2acfb8a0b5ae05fc5ba982d78ee5607384a2be Mon Sep 17 00:00:00 2001 From: Stefan Zegenhagen <[email protected]> Date: Wed, 1 Aug 2012 09:56:15 +0200 Subject: [PATCH] bugfix for vacmViewTreeFamilyMask The vacmViewTreeFamilyMask is defined to be a bit string in the MIB, not an OID. However, the MIB implementation assumed the latter, effectively rendering all attempts to read/set masks via SNMP unsuccessful. Since the mask is used in hot paths (e.g. access permission checks for each SNMP operation, the OID representation of the mask has benefits (e.g. faster processing). Therefore, convert the bitstring to/from its OID representation when reading/setting any mask object.