summaryrefslogtreecommitdiff
path: root/lib/snmp/src
Commit message (Collapse)AuthorAgeFilesLines
* Prepare releaseErlang/OTP2023-05-151-1/+1
|
* Revert "Prepare release"Henrik Nord2023-04-121-1/+1
| | | | This reverts commit d4e4511b19f4126d9271a6e3a8fa2eb716da7e85.
* Prepare releaseErlang/OTP2023-04-111-1/+1
|
* Revert "Prepare release"Henrik Nord2023-03-221-1/+1
| | | | This reverts commit 1cf126f91eb533783409da95b117207d8c13d9aa.
* Prepare releaseErlang/OTP2023-03-211-1/+1
|
* Update copyright yearErlang/OTP2023-03-211-1/+1
|
* Merge branch 'maint'Micael Karlberg2023-03-096-47/+142
|\ | | | | | | OTP-18422 (ERIERL-873)
| * Merge branch ↵Micael Karlberg2023-03-096-49/+144
| |\ | | | | | | | | | 'bmk/snmp/agent/20230127/minimize_error_reporting_during_failed_init/ERIERL-873/OTP-18422' into maint
| | * [snmp] Tweaking agent start sequence to reduce error reportingMicael Karlberg2023-01-306-51/+146
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | <This is a hack> Tweaked the agent start sequence in order to minimize error reporting during a failed start (due to net-if issues). </This is a hack> Also added a new net-if option in order to change what otherwise will be an error reporet to an info report. OTP-18422 (ERIERL-873)
| * | Update copyright yearErlang/OTP2023-03-0610-10/+10
| | |
* | | Use `proc_lib:init_fail/2,3` where appropriateRaimo Niskanen2023-02-272-4/+5
| | |
* | | Update copyright yearErlang/OTP2023-02-1410-10/+10
|/ /
* | snmp: replace size by xxx_sizeKiko Fernandez-Reyes2023-02-071-8/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The <c>size/1</c> BIF is not optimized by the JIT, and its use can result in worse types for Dialyzer. When one knows that the value being tested must be a tuple, <c>tuple_size/1</c> should always be preferred. When one knows that the value being tested must be a binary, <c>byte_size/1</c> should be preferred. However, <c>byte_size/1</c> also accepts a bitstring (rounding up size to a whole number of bytes), so one must make sure that the call to <c>byte_size/</c> is preceded by a call to <c>is_binary/1</c> to ensure that bitstrings are rejected. Note that the compiler removes redundant calls to <c>is_binary/1</c>, so if one is not sure whether previous code had made sure that the argument is a binary, it does not harm to add an <c>is_binary/1</c> test immediately before the call to <c>byte_size/1</c>.
* | snmp: replace size/1 by xxx_size/1Kiko Fernandez-Reyes2023-02-068-27/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The <c>size/1</c> BIF is not optimized by the JIT, and its use can result in worse types for Dialyzer. When one knows that the value being tested must be a tuple, <c>tuple_size/1</c> should always be preferred. When one knows that the value being tested must be a binary, <c>byte_size/1</c> should be preferred. However, <c>byte_size/1</c> also accepts a bitstring (rounding up size to a whole number of bytes), so one must make sure that the call to <c>byte_size/</c> is preceded by a call to <c>is_binary/1</c> to ensure that bitstrings are rejected. Note that the compiler removes redundant calls to <c>is_binary/1</c>, so if one is not sure whether previous code had made sure that the argument is a binary, it does not harm to add an <c>is_binary/1</c> test immediately before the call to <c>byte_size/1</c>.
* | Merge pull request #6694 from ↵Kiko2023-01-271-2/+2
|\ \ | | | | | | | | | | | | | | | | | | kikofernandez/kiko/snmp/replace-size-by-xxx_size/GH-6681/OTP-18401 snmp: replace size/1 by XXX_size/1 OTP-18401
| * | snmp: replace size/1 by XXX_size/1Kiko Fernandez-Reyes2023-01-171-2/+2
| | |
| * | Merge branch ↵Micael Karlberg2023-01-102-7/+25
| |\ \ | | | | | | | | | | | | 'bmk/snmp/20230103/single_thread_uncaught_crash/ERIERL-904/OTP-18379' into maint
* | | | Update copyright yearErlang/OTP2023-01-122-2/+2
| | | |
* | | | Merge branch ↵Erlang/OTP2023-01-122-7/+25
|\ \ \ \ | |/ / / |/| / / | |/ / | | | | | | | | | | | | 'bmk/snmp/20230103/single_thread_uncaught_crash/ERIERL-904/OTP-18379' into maint-25 * bmk/snmp/20230103/single_thread_uncaught_crash/ERIERL-904/OTP-18379: [snmp] Single threaded agent handle request crash [snmp] Handle failed vacm lookup
| * | [snmp] Single threaded agent handle request crashMicael Karlberg2023-01-091-1/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When we are processing a received request (pdu), handle (catch) possible "crashes". Previously, for a multi-threaded agent, the worker (crashing) process was simply restarted (by the master-agent). But for a single threaded agent, the master agent itself crashed. OTP-18379
| * | [snmp] Handle failed vacm lookupMicael Karlberg2023-01-091-6/+17
| |/ | | | | | | | | | | | | | | Handle when we fail to lookup info (mask, type and status) from the vacmViewTreeFamilyTable table. If this happens, we will throw noSuchView (instead of crashing). OTP-18379
* | Update copyright yearErlang/OTP2022-12-121-1/+1
| |
* | Merge branch 'bmk/snmp/20221202/explicit_socket_close/OTP-18352' into maintMicael Karlberg2022-12-052-2/+21
|\ \ | | | | | | | | | OTP-18352
| * | [snmp|agent] Add explicit socket(s) close when terminating net-ifMicael Karlberg2022-12-021-1/+11
| | | | | | | | | | | | OTP-18352
| * | [snmp|agent] Add explicit socket(s) close when terminating net-ifMicael Karlberg2022-12-021-1/+10
| |/ | | | | | | OTP-18352
* | Merge branch 'deterministic-build' of https://github.com/TD5/otp into maintBjörn Gustavsson2022-06-291-0/+4
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 'deterministic-build' of https://github.com/TD5/otp: make: Allow OTP to be built deterministically compiler: Make test_lib robust to +deterministic compiler: Make compiler forward +determinsitic flag to epp compiler: Make yecc respect +deterministic compiler: Make leex respect +deterministic compiler: Make asn1ct_gen respect +deterministic compiler: Make EPP respect +deterministic OTP-18165
| * | make: Allow OTP to be built deterministicallyTom Davies2022-06-241-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add a --enable-deterministic-build to the configure script, which sets ERL_DETERMINISTIC=yes throughout the relevant Makefiles, which then invoke the relevant build stages with the +deterministic option. This addresses absolute paths being included in generated .erl files and compiled .beam files that resulted in builds from different source directories generating different artefacts (which is a component of the issue in erlang#4482). I think it would make sense to make this the default at some stage, but I've put the change behind a flag for now to decouple making deterministic OTP builds possible from making them the default. Having +deterministic set results in compiler options being removed from the module info for modules where this options was used. This may have other implications for users of OTP. For tests themselves, +determinism is not set, since many test cases depend on accessing the test module's compilation options, or other features not available in deterministic mode, in order to configure themselves. For tests of the determinism feature specifically, +deterministic must be explicitly passed to the compiler within the relevant test cases.
* | | [snmp|configure] Update configureMicael Karlberg2022-06-091-1/+3
| | | | | | | | | | | | | | | | | | Add configure option for (default) empty pdu size. OTP-17115
* | | [snmp|agent] Cleanup and consistencyMicael Karlberg2022-06-092-50/+55
| | | | | | | | | | | | | | | | | | Define the empty_msg_size based on the empty_pdu_size... OTP-17115
* | | [snmp|agent] Make empty-pdu-size configurableMicael Karlberg2022-06-092-1/+16
| | | | | | | | | | | | | | | | | | | | | Aloow for the 'empty-pdu-size' to be "pre-defined" (by the compiler). OTP-17115
* | | [snmp|agent] Add more comments and debug and test functionsMicael Karlberg2022-06-092-4/+71
| | | | | | | | | | | | | | | | | | | | | Add some comments, mostly to add to the confusion, and test and debug functions. OTP-17115
* | | [snmp|agent] Adjust 'empty pdu size' for get-bulk size checkMicael Karlberg2022-05-203-35/+39
|/ / | | | | | | | | | | | | | | | | | | There is an runtime check for how many varbinds can be included in an get-bulk reponse. In this check an 'empty pdu size' constant is used. This constant seemed to be too small (21). Increasing to 29 solved the problem (for this user). OTP-17115
* | Merge branch 'maint' into masterHenrik Nord2022-03-101-1/+1
|\ \ | |/ | | | | | | | | | | * maint: Updated OTP version Prepare release Update copyright year
| * Update copyright yearErlang/OTP2022-03-091-1/+1
| |
* | Merge branch 'maint'Micael Karlberg2022-02-171-1/+1
|\ \ | |/ | | | | OTP-16559
| * [snmp|agent] Remove expectation that socket is a portMicael Karlberg2022-02-141-1/+1
| | | | | | | | | | | | | | The point of this is to ensure that it is possible to use 'socket' sockets. OTP-16559
* | Update copyright yearErlang/OTP2022-02-1535-35/+35
| |
* | Merge branch 'maint'Björn Gustavsson2022-02-111-13/+7
|\ \ | |/ | | | | | | * maint: Compile time no longer available
| * Compile time no longer availableJérôme de Bretagne2022-01-191-13/+7
| | | | | | | | | | | | | | | | A few functions still attempted to extract the "compile time" of each module. This info used to be available when calling Module:module_info but was removed "a long time ago". A first removal was done in OTP-15330 and this removes some remaining leftover cases.
* | Merge pull request #5559 from kianmeng/fix-typos-in-lib-snmpMicael Karlberg2022-01-2148-131/+131
|\ \ | | | | | | Fix typos in lib/snmp
| * | Fix typos in lib/snmpKian-Meng, Ang2021-12-3048-131/+131
| | |
* | | otp: Fix `make TYPE=$TYPE` to work for all typesLukas Larsson2022-01-215-10/+10
|/ /
* | Update copyright yearRickard Green2021-12-162-2/+2
| |
* | Merge branch 'maint'Rickard Green2021-12-1310-10/+10
|\ \ | |/ | | | | | | * maint: Update copyright year
| * Update copyright yearRickard Green2021-12-1310-10/+10
| |
* | Merge branch 'maint'Micael Karlberg2021-11-301-4/+38
|\ \ | |/ | | | | OTP-17783
| * Merge branch 'bmk/snmp/20211125/improve_manager_debug_info/OTP-17783' into maintMicael Karlberg2021-11-301-4/+38
| |\ | | | | | | | | | OTP-17783
| | * [snmp|manager] Add debug (verbosity) printoutsMicael Karlberg2021-11-261-8/+36
| | | | | | | | | | | | | | | | | | Add verbosity printouts at the error case(s). OTP-17783
| | * [snmp|manager] More debug stuffMicael Karlberg2021-11-261-0/+2
| | | | | | | | | | | | OTP-17783
| | * [snmp|manager] Improved debug (verbosity) info during encryptMicael Karlberg2021-11-251-1/+5
| | | | | | | | | | | | OTP-17783