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


=begin
Oops, my previous comment was in error.

I was attempting to (({setsockopt :IPPROTO_IPV6, :IPV6_PKTINFO, true})) (RFC 2922) when you must set (({IPV6_RECVPKTINFO})) for an RFC 3542 implementation, so this patch is OK.
=end

----------------------------------------
Bug #8517: Enable IPV6_PKTINFO on OS X
https://bugs.ruby-lang.org/issues/8517#change-39879

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/