aboutsummaryrefslogtreecommitdiffstats
path: root/lib/snmp/src/app/snmp.erl
diff options
context:
space:
mode:
authorMicael Karlberg <[email protected]>2019-04-11 18:32:43 +0200
committerMicael Karlberg <[email protected]>2019-04-11 18:32:43 +0200
commit1d5433d877fc7302122bbb6a28feb1392bf6f64b (patch)
tree91d21e3f7ea595b7934c415cfcb8bbb966ee8d99 /lib/snmp/src/app/snmp.erl
parentfa337c32e54c98a9330b574d9dbb6c7d7d77b117 (diff)
parentb9a0da00aa0259e35b505d674d2a656020fdbdfe (diff)
downloadotp-1d5433d877fc7302122bbb6a28feb1392bf6f64b.tar.gz
otp-1d5433d877fc7302122bbb6a28feb1392bf6f64b.tar.bz2
otp-1d5433d877fc7302122bbb6a28feb1392bf6f64b.zip
Merge branch 'bmk/snmp/20190328/get_mechanism/OTP-15691' into maint
Diffstat (limited to 'lib/snmp/src/app/snmp.erl')
-rw-r--r--lib/snmp/src/app/snmp.erl24
1 files changed, 22 insertions, 2 deletions
diff --git a/lib/snmp/src/app/snmp.erl b/lib/snmp/src/app/snmp.erl
index 8a736f688b..216452afdd 100644
--- a/lib/snmp/src/app/snmp.erl
+++ b/lib/snmp/src/app/snmp.erl
@@ -1,7 +1,7 @@
%%
%% %CopyrightBegin%
%%
-%% Copyright Ericsson AB 1996-2017. All Rights Reserved.
+%% Copyright Ericsson AB 1996-2019. All Rights Reserved.
%%
%% Licensed under the Apache License, Version 2.0 (the "License");
%% you may not use this file except in compliance with the License.
@@ -116,7 +116,10 @@
pdu/0,
trappdu/0,
mib/0,
- mib_name/0,
+ mib_name/0,
+
+ error_status/0,
+ error_index/0,
void/0
]).
@@ -208,6 +211,23 @@
-type pdu() :: #pdu{}.
-type trappdu() :: #trappdu{}.
+%% We should really specify all of these, but they are so numerous...
+%% See the validate_err/1 function in the snmpa_agent.
+%% Here are a number of them:
+%% badValue |
+%% commitFailed |
+%% genErr |
+%% inconsistentName | inconsistentValue |
+%% noAccess | noCreation |
+%% noSuchInstance | noSuchName | noSuchObject |
+%% notWritable |
+%% resourceUnavailable |
+%% undoFailed |
+%% wrongValue
+
+-type error_status() :: atom().
+-type error_index() :: pos_integer().
+
-type void() :: term().