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

* ext/socket/constants.c (cmsg_type_arg): INET6 check.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21949 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
usa 2009-02-02 05:23:23 +00:00
parent 197747f7d6
commit 57d85f32f5
2 changed files with 6 additions and 0 deletions

View file

@ -1,3 +1,7 @@
Mon Feb 2 14:22:56 2009 NAKAMURA Usaku <usa@ruby-lang.org>
* ext/socket/constants.c (cmsg_type_arg): INET6 check.
Mon Feb 2 14:18:20 2009 Tanaka Akira <akr@fsij.org>
* ext/socket/option.c: use INET6 instead of IPV6.

View file

@ -100,8 +100,10 @@ cmsg_type_arg(int level, VALUE optname)
return constant_arg(optname, scm_optname_to_int, "unknown UNIX control message");
case IPPROTO_IP:
return constant_arg(optname, ip_optname_to_int, "unknown IP control message");
#ifdef INET6
case IPPROTO_IPV6:
return constant_arg(optname, ipv6_optname_to_int, "unknown IPv6 control message");
#endif
case IPPROTO_TCP:
return constant_arg(optname, tcp_optname_to_int, "unknown TCP control message");
case IPPROTO_UDP: