[前][次][番号順一覧][スレッド一覧]

ruby-changes:32413

From: drbrain <ko1@a...>
Date: Sat, 4 Jan 2014 10:16:33 +0900 (JST)
Subject: [ruby-changes:32413] drbrain:r44492 (trunk): * lib/rinda/ring.rb (Rinda::RingFinger#make_socket): Use

drbrain	2014-01-04 10:16:28 +0900 (Sat, 04 Jan 2014)

  New Revision: 44492

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=44492

  Log:
    * lib/rinda/ring.rb (Rinda::RingFinger#make_socket):  Use
      ipv4_multicast_loop option for portability.  Patch by Jeremy Evans.
      [ruby-trunk - Bug #9351]

  Modified files:
    trunk/ChangeLog
    trunk/lib/rinda/ring.rb
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 44491)
+++ ChangeLog	(revision 44492)
@@ -1,3 +1,9 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Sat Jan  4 10:15:47 2014  Eric Hodel  <drbrain@s...>
+
+	* lib/rinda/ring.rb (Rinda::RingFinger#make_socket):  Use
+	  ipv4_multicast_loop option for portability.  Patch by Jeremy Evans.
+	  [ruby-trunk - Bug #9351]
+
 Fri Jan  3 19:09:00 2014  Eric Wong  <normalperson@y...>
 
 	* ext/socket/socket.c (rsock_sys_fail_host_port): save and restore errno
Index: lib/rinda/ring.rb
===================================================================
--- lib/rinda/ring.rb	(revision 44491)
+++ lib/rinda/ring.rb	(revision 44492)
@@ -413,7 +413,7 @@ module Rinda https://github.com/ruby/ruby/blob/trunk/lib/rinda/ring.rb#L413
       soc = Socket.new(addrinfo.pfamily, addrinfo.socktype, addrinfo.protocol)
 
       if addrinfo.ipv4_multicast? then
-        soc.setsockopt(:IPPROTO_IP, :IP_MULTICAST_LOOP, true)
+        soc.setsockopt(Socket::Option.ipv4_multicast_loop(1))
         soc.setsockopt(:IPPROTO_IP, :IP_MULTICAST_TTL,
                        [@multicast_hops].pack('c'))
       elsif addrinfo.ipv6_multicast? then

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]