diff options
author | Raimo Niskanen <[email protected]> | 2014-07-02 15:37:41 +0200 |
---|---|---|
committer | Raimo Niskanen <[email protected]> | 2014-07-30 10:31:24 +0200 |
commit | 1e67db678ea40e4b8a125da425c86fdfe7f1b986 (patch) | |
tree | 1abe0b5f8f91fb6efaa17aa4f393f79739b9da56 /lib/snmp/src/agent | |
parent | 81d2a6e1b13e944893377d93505523b8e7995e53 (diff) | |
download | otp-1e67db678ea40e4b8a125da425c86fdfe7f1b986.tar.gz otp-1e67db678ea40e4b8a125da425c86fdfe7f1b986.tar.bz2 otp-1e67db678ea40e4b8a125da425c86fdfe7f1b986.zip |
Use {ipv6_v6only, true}
Diffstat (limited to 'lib/snmp/src/agent')
-rw-r--r-- | lib/snmp/src/agent/snmpa_net_if.erl | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/lib/snmp/src/agent/snmpa_net_if.erl b/lib/snmp/src/agent/snmpa_net_if.erl index 8f6706166b..389c26834d 100644 --- a/lib/snmp/src/agent/snmpa_net_if.erl +++ b/lib/snmp/src/agent/snmpa_net_if.erl @@ -1448,9 +1448,14 @@ get_counters([Counter|Counters], Acc) -> socket_opts(Domain, {IpAddr, IpPort}, Opts) -> [IpPort, % Picked off at socket open, separate argument - binary, - snmp_conf:tdomain_to_family(Domain) - | case get_bind_to_ip_address(Opts) of + binary + | case snmp_conf:tdomain_to_family(Domain) of + inet6 = Family -> + [Family, {ipv6_v6only, true}]; + Family -> + [Family] + end ++ + case get_bind_to_ip_address(Opts) of true -> [{ip, IpAddr}]; _ -> |