aboutsummaryrefslogtreecommitdiffstats
path: root/lib/snmp/src
diff options
context:
space:
mode:
authorMicael Karlberg <[email protected]>2012-02-01 14:58:19 +0100
committerMicael Karlberg <[email protected]>2012-02-22 14:51:10 +0100
commitdb2c9e79e24d742745cc1be3e80d239e0ac6f894 (patch)
tree502eac873798cbd069b7e257ac44ca229b159dc5 /lib/snmp/src
parentac97167c084941d524fc46fef1f52de24c807655 (diff)
downloadotp-db2c9e79e24d742745cc1be3e80d239e0ac6f894.tar.gz
otp-db2c9e79e24d742745cc1be3e80d239e0ac6f894.tar.bz2
otp-db2c9e79e24d742745cc1be3e80d239e0ac6f894.zip
[snmp/manager] Added test cases for net_if-mt
Made the inform_request table public (to allow the worker processes to insert data). Also added test cases (this was done by adding "mt" groups). OTP-9876
Diffstat (limited to 'lib/snmp/src')
-rw-r--r--lib/snmp/src/manager/snmpm_net_if_mt.erl4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/snmp/src/manager/snmpm_net_if_mt.erl b/lib/snmp/src/manager/snmpm_net_if_mt.erl
index ab6965691c..753626be72 100644
--- a/lib/snmp/src/manager/snmpm_net_if_mt.erl
+++ b/lib/snmp/src/manager/snmpm_net_if_mt.erl
@@ -182,8 +182,10 @@ do_init(Server, NoteStore) ->
process_flag(priority, Prio),
%% -- Create inform request table --
+ %% This should really be protected, but it also needs to
+ %% be writable for the worker processes, so...
ets:new(snmpm_inform_request_table,
- [set, protected, named_table, {keypos, 1}]),
+ [set, public, named_table, {keypos, 1}]),
%% -- Verbosity --
{ok, Verbosity} = snmpm_config:system_info(net_if_verbosity),