diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-02-09 10:49:16 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-02-09 10:49:16 +0000 |
commit | 27ed4719426911563869fdfe1f86ab4b42ea8154 (patch) | |
tree | 3050f3cfaca4d443923a7a64a85b232ed25e5de8 /test | |
parent | dd1d0bb26957063e5f68bc0e3cadb39155e835aa (diff) | |
download | ruby-27ed4719426911563869fdfe1f86ab4b42ea8154.tar.gz ruby-27ed4719426911563869fdfe1f86ab4b42ea8154.tar.xz ruby-27ed4719426911563869fdfe1f86ab4b42ea8154.zip |
* ext/socket/ancdata.c (ancillary_initialize): add family argument.
(ancdata_new): ditto.
(ancillary_s_int): ditto.
(ancillary_family): new function.
(ancillary_family_m): new method.
(ancillary_s_ip_pktinfo): follow ancdata_new change.
(ancillary_s_ipv6_pktinfo): ditto.
(bsock_recvmsg_internal): examine the socket address family.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22175 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r-- | test/socket/test_unix.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/socket/test_unix.rb b/test/socket/test_unix.rb index 663ad8f11..feeef0810 100644 --- a/test/socket/test_unix.rb +++ b/test/socket/test_unix.rb @@ -92,7 +92,7 @@ class TestUNIXSocket < Test::Unit::TestCase IO.pipe {|r1, w| UNIXSocket.pair {|s1, s2| begin - ad = Socket::AncillaryData.int(:SOCKET, :RIGHTS, r1.fileno) + ad = Socket::AncillaryData.int(:UNIX, :SOCKET, :RIGHTS, r1.fileno) ret = s1.sendmsg("\0", 0, nil, ad) rescue NotImplementedError return |