1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

merge revision(s) 44494:

* 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/branches/ruby_2_1@45060 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
naruse 2014-02-20 03:25:08 +00:00
parent 781159e7ba
commit f851d5dea6
3 changed files with 7 additions and 3 deletions

View file

@ -1,3 +1,8 @@
Thu Feb 20 12:24:59 2014 Eric Hodel <drbrain@segment7.net>
* lib/rinda/ring.rb (Rinda::RingFinger#make_socket): Use
ipv4_multicast_ttl option for portability.
Thu Feb 20 10:19:40 2014 Tanaka Akira <akr@fsij.org> Thu Feb 20 10:19:40 2014 Tanaka Akira <akr@fsij.org>
* ext/socket/option.c: IP_MULTICAST_LOOP and IP_MULTICAST_TTL socket * ext/socket/option.c: IP_MULTICAST_LOOP and IP_MULTICAST_TTL socket

View file

@ -414,8 +414,7 @@ module Rinda
if addrinfo.ipv4_multicast? then if addrinfo.ipv4_multicast? then
soc.setsockopt(Socket::Option.ipv4_multicast_loop(1)) soc.setsockopt(Socket::Option.ipv4_multicast_loop(1))
soc.setsockopt(:IPPROTO_IP, :IP_MULTICAST_TTL, soc.setsockopt(Socket::Option.ipv4_multicast_ttl(@multicast_hops))
[@multicast_hops].pack('c'))
elsif addrinfo.ipv6_multicast? then elsif addrinfo.ipv6_multicast? then
soc.setsockopt(:IPPROTO_IPV6, :IPV6_MULTICAST_LOOP, true) soc.setsockopt(:IPPROTO_IPV6, :IPV6_MULTICAST_LOOP, true)
soc.setsockopt(:IPPROTO_IPV6, :IPV6_MULTICAST_HOPS, soc.setsockopt(:IPPROTO_IPV6, :IPV6_MULTICAST_HOPS,

View file

@ -1,6 +1,6 @@
#define RUBY_VERSION "2.1.1" #define RUBY_VERSION "2.1.1"
#define RUBY_RELEASE_DATE "2014-02-20" #define RUBY_RELEASE_DATE "2014-02-20"
#define RUBY_PATCHLEVEL 36 #define RUBY_PATCHLEVEL 37
#define RUBY_RELEASE_YEAR 2014 #define RUBY_RELEASE_YEAR 2014
#define RUBY_RELEASE_MONTH 2 #define RUBY_RELEASE_MONTH 2