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

Cent OS 5.6 (2.6.18-238.19.1.el5xen) doesn't correctly work

sendmsg with pktinfo for link-local ipv6 addresses

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34232 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
naruse 2012-01-07 23:04:20 +00:00
parent 0713603b6f
commit 6e9a14aabe

View file

@ -322,6 +322,12 @@ class TestSocket < Test::Unit::TestCase
}
ip_addrs.each {|ai|
if /linux/ =~ RUBY_PLATFORM && ai.ip_address.include?('%') &&
(`uname -r`[/[0-9.]+/].split('.').map(&:to_i) <=> [2,6,18]) <= 0
# Cent OS 5.6 (2.6.18-238.19.1.el5xen) doesn't correctly work
# sendmsg with pktinfo for link-local ipv6 addresses
next
end
Addrinfo.udp(ai.ip_address, port).connect {|s|
msg1 = "<<<#{ai.inspect}>>>"
s.sendmsg msg1