Issue #8517 has been updated by naruse (Yui NARUSE).

Target version set to current: 2.1.0
Backport changed from 1.9.3: UNKNOWN, 2.0.0: UNKNOWN to 1.9.3: REQUIRED, 2.0.0: REQUIRED

/usr/include/netinet6/in6.h says


/*
 * RFC 3542 define the following socket options in a manner incompatible
 * with RFC 2292:
 *   IPV6_PKTINFO
 *   IPV6_HOPLIMIT
 *   IPV6_NEXTHOP
 *   IPV6_HOPOPTS
 *   IPV6_DSTOPTS
 *   IPV6_RTHDR
 *
 * To use the new IPv6 Sockets options introduced by RFC 3542
 * the constant __APPLE_USE_RFC_3542 must be defined before
 * including <netinet/in.h>
 *
 * To use the old IPv6 Sockets options from RFC 2292
 * the constant __APPLE_USE_RFC_2292 must be defined before
 * including <netinet/in.h>
 *
 * Note that eventually RFC 3542 is going to be the
 * default and RFC 2292 will be obsolete.
 */

So commit it!
----------------------------------------
Bug #8517: Enable IPV6_PKTINFO on OS X
https://bugs.ruby-lang.org/issues/8517#change-39885

Author: drbrain (Eric Hodel)
Status: Open
Priority: Normal
Assignee: 
Category: ext
Target version: current: 2.1.0
ruby -v: -
Backport: 1.9.3: REQUIRED, 2.0.0: REQUIRED


=begin
Recent versions of OS X hide (({IPV6_PKTINFO})) (and some other socket options) behind (({__APPLE_USE_RFC_3542})) (or (({__APPLE_USE_RFC_2292}))).

This patch defines (({__APPLE_USE_RFC_3542})) when building the socket extension as netinet6/in6.h says "Note that eventually RFC 3542 is going to be the default and RFC 2292 will be obsolete."

With this patch IPV6_PKTINFO appears in Socket::Constants
 
=end



-- 
http://bugs.ruby-lang.org/