summaryrefslogtreecommitdiff
path: root/lib/rinda
diff options
context:
space:
mode:
authordrbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-01-04 01:18:20 +0000
committerdrbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-01-04 01:18:20 +0000
commit72956078150c44731a4373edbd20e73da8be7744 (patch)
tree469d55550d06d5de1bf4fae3e48361356df0fcde /lib/rinda
parent864e0c90c3769d1c85bdbfe6e7a576dc1c6029a2 (diff)
* lib/rinda/ring.rb (Rinda::RingFinger#make_socket): Use
ipv4_multicast_ttl option for portability. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44494 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/rinda')
-rw-r--r--lib/rinda/ring.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/rinda/ring.rb b/lib/rinda/ring.rb
index 4e9efad..2c29977 100644
--- a/lib/rinda/ring.rb
+++ b/lib/rinda/ring.rb
@@ -414,8 +414,7 @@ module Rinda
if addrinfo.ipv4_multicast? then
soc.setsockopt(Socket::Option.ipv4_multicast_loop(1))
- soc.setsockopt(:IPPROTO_IP, :IP_MULTICAST_TTL,
- [@multicast_hops].pack('c'))
+ soc.setsockopt(Socket::Option.ipv4_multicast_ttl(@multicast_hops))
elsif addrinfo.ipv6_multicast? then
soc.setsockopt(:IPPROTO_IPV6, :IPV6_MULTICAST_LOOP, true)
soc.setsockopt(:IPPROTO_IPV6, :IPV6_MULTICAST_HOPS,