aboutsummaryrefslogtreecommitdiffstats
path: root/lib/snmp/src/agent
diff options
context:
space:
mode:
authorRaimo Niskanen <[email protected]>2014-06-19 16:08:28 +0200
committerRaimo Niskanen <[email protected]>2014-07-25 12:17:49 +0200
commit41fe52bd9540307cdb6e2e4ba06d36b11c9fd6bd (patch)
tree01faec4e1be39f6989cf64ebc208c005d2253123 /lib/snmp/src/agent
parent4dba07b435696393adbf582933f9b539be48b943 (diff)
downloadotp-41fe52bd9540307cdb6e2e4ba06d36b11c9fd6bd.tar.gz
otp-41fe52bd9540307cdb6e2e4ba06d36b11c9fd6bd.tar.bz2
otp-41fe52bd9540307cdb6e2e4ba06d36b11c9fd6bd.zip
Add testcases and do related fixes
Diffstat (limited to 'lib/snmp/src/agent')
-rw-r--r--lib/snmp/src/agent/snmpa_net_if.erl8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/snmp/src/agent/snmpa_net_if.erl b/lib/snmp/src/agent/snmpa_net_if.erl
index 71bb9cad2e..875ea19097 100644
--- a/lib/snmp/src/agent/snmpa_net_if.erl
+++ b/lib/snmp/src/agent/snmpa_net_if.erl
@@ -28,7 +28,6 @@
-export([system_continue/3, system_terminate/4, system_code_change/4]).
-export([init/5]).
-export([filter_reset/1]).
--export([format_address/1]).
-include("snmp_types.hrl").
-include("snmpa_internal.hrl").
@@ -1099,11 +1098,12 @@ fix_filter_address(snmpUDPDomain, {Domain, Addr})
when Domain =:= snmpUDPDomain;
Domain =:= transportDomainUdpIpv4 ->
Addr;
+fix_filter_address(_AgentDomain, {Domain, _} = Address)
+ when is_atom(Domain) ->
+ Address;
fix_filter_address(snmpUDPDomain, {_, Port} = Addr)
when is_integer(Port) ->
- Addr;
-fix_filter_address(_AgentDomain, Address) ->
- Address.
+ Addr.
%%%-----------------------------------------------------------------