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

ruby-changes:22183

From: naruse <ko1@a...>
Date: Sun, 8 Jan 2012 08:04:30 +0900 (JST)
Subject: [ruby-changes:22183] naruse:r34232 (trunk): Cent OS 5.6 (2.6.18-238.19.1.el5xen) doesn't correctly work

naruse	2012-01-08 08:04:20 +0900 (Sun, 08 Jan 2012)

  New Revision: 34232

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

  Log:
    Cent OS 5.6 (2.6.18-238.19.1.el5xen) doesn't correctly work
    sendmsg with pktinfo for link-local ipv6 addresses

  Modified files:
    trunk/test/socket/test_socket.rb

Index: test/socket/test_socket.rb
===================================================================
--- test/socket/test_socket.rb	(revision 34231)
+++ test/socket/test_socket.rb	(revision 34232)
@@ -322,6 +322,12 @@
         }
 
         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

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

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