On 22/02/12 20:49, debrabander wrote:
> This is not the a problem when building using the latest Mac OS X SDK.
> I've did a quick search and it seems to be a more common issue on some
> (old) Darwin platforms. Please try building again after applying the
> patch below.
> 
> 
> Signed-off-by: Frank de Brabander <debraban...@gmail.com>
> ---
>  socket.c |    5 +++++
>  1 files changed, 5 insertions(+), 0 deletions(-)

Applied to master, with an extended commit note.


commit fe8a7f0cc25e6b9492bf0613025873c7a5f46ca5
Author: Frank de Brabander <debraban...@gmail.com>
List-Post: openvpn-devel@lists.sourceforge.net
Date:   Wed Feb 22 11:49:15 2012 -0800

    Fix reported compile issues on OSX 10.6.8
    
    This is not the a problem when building using the latest Mac OS X SDK.
    I've did a quick search and it seems to be a more common issue on some
    (old) Darwin platforms.    
    
    [ Additional review note from Gert Doering:
    
      IPV6_PKTINFO is part of the "extended socket API" defined in RFC2292.
      That RFC used IPV6_PKTINFO both for receiving the destination IPv6 address
      in UDP packets, and for setting the source address for outgoing packets.
    
      RFC2292 was updated by RFC3542, which renamed the "receive" function to
      IPV6_RECVPKTINFO, leaving the "sending" function as IPV6_PKTINFO - and,
      subsequently, in FreeBSD they have different "setsockopt()" opcodes.
    
      So, on a system that has *both*, we need to use IPV6_RECVPKTINFO for
      receving (turning it on with setsockopt) to make --multihome work, and
      IPV6_PKTINFO for sending (which we don't actually do).
    
      On a system that only has IPV6_PKTINFO, because it's API only implements
      2292 (MacOS up until 10.6), use IPV6_PKTINFO for setsockopt().
    
      Now, the interesting question is whether a 10.5-compiled openvpn.exe
      will behave correctly under 10.7 if --multihome is active...
    ]
    
    Signed-off-by: Frank de Brabander <debraban...@gmail.com>
    Acked-by: Gert Doering <g...@greenie.muc.de>
    Message-Id: 
eb2837a3-ce55-4f52-b2fe-f822efc66...@l14g2000vbe.googlegroups.com
    URL: http://article.gmane.org/gmane.network.openvpn.devel/5591
    Signed-off-by: David Sommerseth <dav...@redhat.com>


kind regards,

David Sommerseth

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to