mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* ext/socket/raddrinfo.c (addrinfo_mdump): new method.
(addrinfo_mload): new method. (Init_addrinfo): define the method above. * ext/socket/constants.c (constant_arg): str_to_int's first argument constified. * ext/socket/mkconstants.rb (gen_name_to_int_decl): generated function's first argument constified. (gen_name_to_int_func_in_guard): ditto. (ipproto_to_int): generated. * ext/socket/rubysocket.h (IS_IP_FAMILY): moved from raddrinfo.c. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21643 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
75e0fde36b
commit
86aa5043d8
6 changed files with 253 additions and 10 deletions
|
@ -74,6 +74,12 @@
|
|||
# define NI_MAXSERV 32
|
||||
#endif
|
||||
|
||||
#ifdef AF_INET6
|
||||
# define IS_IP_FAMILY(af) ((af) == AF_INET || (af) == AF_INET6)
|
||||
#else
|
||||
# define IS_IP_FAMILY(af) ((af) == AF_INET)
|
||||
#endif
|
||||
|
||||
#ifndef HAVE_SOCKADDR_STORAGE
|
||||
/*
|
||||
* RFC 2553: protocol-independent placeholder for socket addresses
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue