aboutsummaryrefslogtreecommitdiffstats
path: root/lib/snmp/src/manager/snmpm_user.erl
diff options
context:
space:
mode:
authorRaimo Niskanen <[email protected]>2014-04-30 16:47:05 +0200
committerRaimo Niskanen <[email protected]>2014-07-25 12:15:14 +0200
commitabbd9936144da7bcff9b4819785e597455ac7f35 (patch)
treee98eaafb0f6810ebcb16053cb591e429d667d78a /lib/snmp/src/manager/snmpm_user.erl
parent16b194c40f8a9ce2e12b82afd7d44bc782a80795 (diff)
downloadotp-abbd9936144da7bcff9b4819785e597455ac7f35.tar.gz
otp-abbd9936144da7bcff9b4819785e597455ac7f35.tar.bz2
otp-abbd9936144da7bcff9b4819785e597455ac7f35.zip
wip: Rewrite manager net_if process
Diffstat (limited to 'lib/snmp/src/manager/snmpm_user.erl')
-rw-r--r--lib/snmp/src/manager/snmpm_user.erl23
1 files changed, 14 insertions, 9 deletions
diff --git a/lib/snmp/src/manager/snmpm_user.erl b/lib/snmp/src/manager/snmpm_user.erl
index e6b0b6943e..8e5a874f77 100644
--- a/lib/snmp/src/manager/snmpm_user.erl
+++ b/lib/snmp/src/manager/snmpm_user.erl
@@ -1,7 +1,7 @@
%%
%% %CopyrightBegin%
%%
-%% Copyright Ericsson AB 2004-2013. All Rights Reserved.
+%% Copyright Ericsson AB 2004-2014. All Rights Reserved.
%%
%% The contents of this file are subject to the Erlang Public License,
%% Version 1.1, (the "License"); you may not use this file except in
@@ -39,20 +39,25 @@
%% *** handle_error ***
%% An "asynchronous" error has been detected
--callback handle_error(ReqId :: integer(),
- Reason :: {unexpected_pdu, SnmpInfo :: snmp_gen_info()} |
- {invalid_sec_info, SecInfo :: term(), SnmpInfo :: snmp_gen_info()} |
- {empty_message, Addr :: ip_address(), Port :: port_number()} |
- term(),
- UserData :: term()) ->
+-callback handle_error(
+ ReqId :: integer(),
+ Reason :: {unexpected_pdu, SnmpInfo :: snmp_gen_info()} |
+ {invalid_sec_info,
+ SecInfo :: term(),
+ SnmpInfo :: snmp_gen_info()} |
+ {empty_message,
+ TransportDomain :: atom(),
+ {Addr :: ip_address(), Port :: port_number()}} |
+ term(),
+ UserData :: term()) ->
snmp:void().
%% *** handle_agent ***
%% A message was received from an unknown agent
--callback handle_agent(Addr :: term(),
- Port :: pos_integer(),
+-callback handle_agent(Domain :: atom(),
+ Address :: term(),
Type :: pdu | trap | inform | report,
SnmpInfo :: snmp_gen_info() | snmp_v1_trap_info(),
UserData :: term()) ->