diff options
author | Micael Karlberg <[email protected]> | 2011-03-25 21:39:03 +0100 |
---|---|---|
committer | Micael Karlberg <[email protected]> | 2011-03-25 21:39:03 +0100 |
commit | b1fa2355c461fd0feb11a41d4424594f5590373a (patch) | |
tree | 689f396c35a8abb07e119528891530f35b28a209 /lib | |
parent | 5396cae69c23d7d8b7bbd0433c3b31144254c7a9 (diff) | |
download | otp-b1fa2355c461fd0feb11a41d4424594f5590373a.tar.gz otp-b1fa2355c461fd0feb11a41d4424594f5590373a.tar.bz2 otp-b1fa2355c461fd0feb11a41d4424594f5590373a.zip |
Checking an taddress with domain snmpUDPDomain giv as a OID not handled.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/snmp/src/misc/snmp_conf.erl | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/lib/snmp/src/misc/snmp_conf.erl b/lib/snmp/src/misc/snmp_conf.erl index 4fffb0fe38..cb5b3bbfbd 100644 --- a/lib/snmp/src/misc/snmp_conf.erl +++ b/lib/snmp/src/misc/snmp_conf.erl @@ -402,9 +402,13 @@ mk_tdomain(BadDomain) -> check_taddress(X) -> check_taddress(snmpUDPDomain, X). +check_taddress(?snmpUDPDomain, X) -> + check_taddress(transportDomainUdpIpv4, X); check_taddress(snmpUDPDomain, X) -> check_taddress(transportDomainUdpIpv4, X); +check_taddress(?transportDomainUdpIpv4, X) -> + check_taddress(transportDomainUdpIpv4, X); check_taddress(transportDomainUdpIpv4, X) when is_list(X) andalso (length(X) =:= 6) -> case (catch all_integer(X)) of @@ -415,9 +419,9 @@ check_taddress(transportDomainUdpIpv4, X) end; check_taddress(transportDomainUdpIpv4, X) -> error({invalid_taddress, X}); -check_taddress(?transportDomainUdpIpv4, X) -> - check_taddress(transportDomainUdpIpv4, X); +check_taddress(?transportDomainUdpIpv6, X) -> + check_taddress(transportDomainUdpIpv6, X); check_taddress(transportDomainUdpIpv6, X) when is_list(X) andalso (length(X) =:= 10) -> case (catch all_integer(X)) of @@ -428,8 +432,6 @@ check_taddress(transportDomainUdpIpv6, X) end; check_taddress(transportDomainUdpIpv6, X) -> error({invalid_taddress, X}); -check_taddress(?transportDomainUdpIpv6, X) -> - check_taddress(transportDomainUdpIpv6, X); check_taddress(BadDomain, _X) -> error({invalid_tdomain, BadDomain}). |