diff options
author | Micael Karlberg <[email protected]> | 2012-03-27 17:46:07 +0200 |
---|---|---|
committer | Micael Karlberg <[email protected]> | 2012-12-20 17:33:05 +0100 |
commit | 1155b2ddccefbd922f46ba6c1e064513aceaf37f (patch) | |
tree | 9d7d98e1c4a1268bb24e0458e9cd12bfd1a45b68 /lib/snmp/test/snmp_test_manager.erl | |
parent | 7d99789b7f5ef121fa4501a23e037b0ad304db77 (diff) | |
download | otp-1155b2ddccefbd922f46ba6c1e064513aceaf37f.tar.gz otp-1155b2ddccefbd922f46ba6c1e064513aceaf37f.tar.bz2 otp-1155b2ddccefbd922f46ba6c1e064513aceaf37f.zip |
[snmp/manager] Preliminary test suite update
OTP-10027
Diffstat (limited to 'lib/snmp/test/snmp_test_manager.erl')
-rw-r--r-- | lib/snmp/test/snmp_test_manager.erl | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/snmp/test/snmp_test_manager.erl b/lib/snmp/test/snmp_test_manager.erl index 4cc6d36acc..0df2350d58 100644 --- a/lib/snmp/test/snmp_test_manager.erl +++ b/lib/snmp/test/snmp_test_manager.erl @@ -43,7 +43,7 @@ %% Manager callback API: -export([ handle_error/3, - handle_agent/4, + handle_agent/5, handle_pdu/4, handle_trap/3, handle_inform/3, @@ -239,7 +239,7 @@ handle_info({snmp_error, ReqId, Reason}, P ! {snmp_error, ReqId, Reason}, {noreply, State}; -handle_info({snmp_agent, Addr, Port, Info, Pid}, +handle_info({snmp_agent, Addr, Port, Info, Pid, _UserData}, #state{parent = P} = State) -> error_msg("detected new agent: " "~n Addr: ~w" @@ -326,8 +326,8 @@ handle_error(ReqId, Reason, Pid) -> ignore. -handle_agent(Addr, Port, SnmpInfo, Pid) -> - Pid ! {snmp_agent, Addr, Port, SnmpInfo, self()}, +handle_agent(Addr, Port, SnmpInfo, Pid, UserData) -> + Pid ! {snmp_agent, Addr, Port, SnmpInfo, self(), UserData}, receive {snmp_agent_reply, Reply, Pid} -> Reply |