diff options
author | Erlang/OTP <[email protected]> | 2011-07-12 15:45:35 +0200 |
---|---|---|
committer | Erlang/OTP <[email protected]> | 2011-07-12 15:45:35 +0200 |
commit | 9e2b8f8ab28cb74be951945ac4ea1df1f8bb0960 (patch) | |
tree | 7d924063c62bf29a9697c60643df5b023734feed /lib/snmp/src/agent/snmp_target_mib.erl | |
parent | d328f453e7cd6e24856b0c80e0b8c4ed6def5461 (diff) | |
parent | 8c4b1a7189b918a298e81014b3309e8d129aeed9 (diff) | |
download | otp-9e2b8f8ab28cb74be951945ac4ea1df1f8bb0960.tar.gz otp-9e2b8f8ab28cb74be951945ac4ea1df1f8bb0960.tar.bz2 otp-9e2b8f8ab28cb74be951945ac4ea1df1f8bb0960.zip |
Merge branch 'bmk/snmp/agent/wrong_default_transport_domain/OTP-9425' into maint-r14
* bmk/snmp/agent/wrong_default_transport_domain/OTP-9425:
[agent] Did not handle transport domains properly in some cases, for instance trap sending. OTP-9400
[agent] Wrong default transport domain, snmpUDPDomain, instead of transportDomainUdpIpv4.
[agent] Did not handle transport domains properly in some cases, for instance trap sending.
Diffstat (limited to 'lib/snmp/src/agent/snmp_target_mib.erl')
-rw-r--r-- | lib/snmp/src/agent/snmp_target_mib.erl | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/snmp/src/agent/snmp_target_mib.erl b/lib/snmp/src/agent/snmp_target_mib.erl index 77910541a2..25b3dab088 100644 --- a/lib/snmp/src/agent/snmp_target_mib.erl +++ b/lib/snmp/src/agent/snmp_target_mib.erl @@ -53,7 +53,7 @@ %%----------------------------------------------------------------- default_domain() -> - snmpUDPDomain. + transportDomainUdpIpv4. %%----------------------------------------------------------------- @@ -436,7 +436,8 @@ is_valid_tag(TDomain, TAddress, Tag, Key) -> %% TargAddrs = %% [{TagList, TargetAddr, TargetAddrName, TargetParams, Timeout, Retry}] -%% TargetAddr = {TDomain, TAddr}; e.g. {?snmpUDPDomain, IpAndUdpPortAsList} +%% TargetAddr = {TDomain, TAddr}; e.g. +%% {?transportDomainUdpIpv4, IpAndUdpPortAsList} get_target_addrs() -> get_target_addrs([], db(snmpTargetAddrTable), []). |