aboutsummaryrefslogtreecommitdiffstats
path: root/lib/snmp/src/agent/snmpa_net_if.erl
diff options
context:
space:
mode:
authorMicael Karlberg <[email protected]>2011-04-04 16:09:50 +0200
committerMicael Karlberg <[email protected]>2011-04-04 16:09:50 +0200
commit245061870d1be138819c5a3df235da8faef90899 (patch)
tree254bddb9011dc9c761ce5b364e8745f4102560b1 /lib/snmp/src/agent/snmpa_net_if.erl
parent057911fd21db849ff4f6a9fa28674002945f725f (diff)
downloadotp-245061870d1be138819c5a3df235da8faef90899.tar.gz
otp-245061870d1be138819c5a3df235da8faef90899.tar.bz2
otp-245061870d1be138819c5a3df235da8faef90899.zip
Added extra-info as an argument to be provided when sending
trap/notification and passed through to the net-if process. First version.
Diffstat (limited to 'lib/snmp/src/agent/snmpa_net_if.erl')
-rw-r--r--lib/snmp/src/agent/snmpa_net_if.erl18
1 files changed, 18 insertions, 0 deletions
diff --git a/lib/snmp/src/agent/snmpa_net_if.erl b/lib/snmp/src/agent/snmpa_net_if.erl
index d4bb5bdf9f..bbc43c3da7 100644
--- a/lib/snmp/src/agent/snmpa_net_if.erl
+++ b/lib/snmp/src/agent/snmpa_net_if.erl
@@ -314,6 +314,14 @@ loop(S) ->
NewS = maybe_handle_send_pdu(S, Vsn, Pdu, MsgData, To, undefined),
loop(NewS);
+ %% We dont use the extra-info at this time, ...
+ {send_pdu, Vsn, Pdu, MsgData, To, _ExtraInfo} ->
+ ?vdebug("send pdu: "
+ "~n Pdu: ~p"
+ "~n To: ~p", [Pdu, To]),
+ NewS = maybe_handle_send_pdu(S, Vsn, Pdu, MsgData, To, undefined),
+ loop(NewS);
+
%% Informs
{send_pdu_req, Vsn, Pdu, MsgData, To, From} ->
?vdebug("send pdu request: "
@@ -324,6 +332,16 @@ loop(S) ->
NewS = maybe_handle_send_pdu(S, Vsn, Pdu, MsgData, To, From),
loop(NewS);
+ %% We dont use the extra-info at this time, ...
+ {send_pdu_req, Vsn, Pdu, MsgData, To, From, _ExtraInfo} ->
+ ?vdebug("send pdu request: "
+ "~n Pdu: ~p"
+ "~n To: ~p"
+ "~n From: ~p",
+ [Pdu, To, toname(From)]),
+ NewS = maybe_handle_send_pdu(S, Vsn, Pdu, MsgData, To, From),
+ loop(NewS);
+
%% Discovery Inform
{send_discovery, Pdu, MsgData, To, From} ->
?vdebug("received send discovery request: "