Project

General

Profile

Backport #8517

Enable IPV6_PKTINFO on OS X

Added by drbrain (Eric Hodel) almost 7 years ago. Updated almost 7 years ago.

Status:
Closed
Priority:
Normal
[ruby-core:55453]

Description

=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


Files

socket.apple_IPV6_PKTINFO.patch (443 Bytes) socket.apple_IPV6_PKTINFO.patch drbrain (Eric Hodel), 06/12/2013 11:25 AM

Also available in: Atom PDF