aboutsummaryrefslogtreecommitdiffstats
path: root/lib/snmp/test/snmp_test_manager.erl
diff options
context:
space:
mode:
authorMicael Karlberg <[email protected]>2013-11-26 16:12:46 +0100
committerMicael Karlberg <[email protected]>2013-11-26 16:12:46 +0100
commit0f13b20298fd6f63a08d6fa1d1159a91d79fa1f6 (patch)
treea0e2ca49909defa1da5af2b7eaf24faf14f32a2c /lib/snmp/test/snmp_test_manager.erl
parent6dd7c114b018ac412ed0d5c3423e988094aa9655 (diff)
parent8852c947d413e8814d663c9319f7b8932b05a7ad (diff)
downloadotp-0f13b20298fd6f63a08d6fa1d1159a91d79fa1f6.tar.gz
otp-0f13b20298fd6f63a08d6fa1d1159a91d79fa1f6.tar.bz2
otp-0f13b20298fd6f63a08d6fa1d1159a91d79fa1f6.zip
Merge branch 'maint'
Conflicts: lib/snmp/doc/src/snmpm_user.xml
Diffstat (limited to 'lib/snmp/test/snmp_test_manager.erl')
-rw-r--r--lib/snmp/test/snmp_test_manager.erl20
1 files changed, 16 insertions, 4 deletions
diff --git a/lib/snmp/test/snmp_test_manager.erl b/lib/snmp/test/snmp_test_manager.erl
index 1f3383a7a8..925ae77ab5 100644
--- a/lib/snmp/test/snmp_test_manager.erl
+++ b/lib/snmp/test/snmp_test_manager.erl
@@ -47,7 +47,8 @@
handle_pdu/4,
handle_trap/3,
handle_inform/3,
- handle_report/3
+ handle_report/3,
+ handle_invalid_result/3
]).
@@ -279,12 +280,18 @@ handle_info({snmp_inform, TargetName, Info, Pid},
handle_info({snmp_report, TargetName, Info, Pid},
#state{parent = P} = State) ->
info_msg("received snmp report: "
- "~n TargetName: ~p"
- "~n Info: ~p", [TargetName, Info]),
+ "~n TargetName: ~p"
+ "~n Info: ~p", [TargetName, Info]),
Pid ! {snmp_report_reply, ignore, self()},
P ! {snmp_report, TargetName, Info},
{noreply, State};
+handle_info({snmp_invalid_result, In, Out}, State) ->
+ error_msg("Callback failure: "
+ "~n In: ~p"
+ "~n Out: ~p", [In, Out]),
+ {noreply, State};
+
handle_info(Info, State) ->
error_msg("received unknown info: "
"~n Info: ~p", [Info]),
@@ -369,7 +376,12 @@ handle_report(TargetName, SnmpInfo, Pid) ->
after 10000 ->
ignore
end.
-
+
+
+handle_invalid_result(In, Out, Pid) ->
+ Pid ! {snmp_invalid_result, In, Out},
+ ignore.
+
%%----------------------------------------------------------------------