aboutsummaryrefslogtreecommitdiffstats
path: root/lib/snmp/src/agent/snmpa_agent.erl
diff options
context:
space:
mode:
authorMicael Karlberg <[email protected]>2011-04-18 15:09:39 +0200
committerMicael Karlberg <[email protected]>2011-04-18 15:09:39 +0200
commit30a9f962d349f322f389ebc056e972f871e689a8 (patch)
tree21ef6ac1585abc8f68d43172b2e5425e25451405 /lib/snmp/src/agent/snmpa_agent.erl
parentd620fd8d49314d0f412fbfa83c9f42f7d338558a (diff)
downloadotp-30a9f962d349f322f389ebc056e972f871e689a8.tar.gz
otp-30a9f962d349f322f389ebc056e972f871e689a8.tar.bz2
otp-30a9f962d349f322f389ebc056e972f871e689a8.zip
Patch received from Attila Rajmund Nohl.
Diffstat (limited to 'lib/snmp/src/agent/snmpa_agent.erl')
-rw-r--r--lib/snmp/src/agent/snmpa_agent.erl9
1 files changed, 6 insertions, 3 deletions
diff --git a/lib/snmp/src/agent/snmpa_agent.erl b/lib/snmp/src/agent/snmpa_agent.erl
index 0a28e753ce..e4cfeddb6a 100644
--- a/lib/snmp/src/agent/snmpa_agent.erl
+++ b/lib/snmp/src/agent/snmpa_agent.erl
@@ -2126,7 +2126,7 @@ send_discovery(S, From,
TargetName, Record, ContextName, InitVars,
DiscoHandler, ExtraInfo) ->
case snmpa_trap:send_discovery(TargetName, Record, ContextName,
- InitVars, get(net_if)) of
+ InitVars, get(net_if), ExtraInfo) of
{ok, Sender, SecLevel} ->
Disco = #disco{from = From,
rec = Record,
@@ -2203,9 +2203,12 @@ handle_discovery_response(#state{disco = #disco{target = TargetName,
#disco{rec = Record,
ctx = ContextName,
ivbs = InitVars} = Disco,
- case snmpa_trap:send_discovery(TargetName, Record,
+ case snmpa_trap:send_discovery(TargetName,
+ Record,
ContextName,
- InitVars, get(net_if)) of
+ InitVars,
+ get(net_if),
+ ExtraInfo) of
{ok, Sender, _SecLevel} ->
?vdebug("handle_discovery_response(1) -> "
"stage 2 trap sent", []),