Issue #8517 has been updated by drbrain (Eric Hodel).


This patch does not work. __APPLE_USE_RFC_2292 does work, but I am unsure how the OS knows which socket options you wish to use.
----------------------------------------
Bug #8517: Enable IPV6_PKTINFO on OS X
https://bugs.ruby-lang.org/issues/8517#change-39876

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


=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/