diff options
author | Frank de Brabander <debrabander@gmail.com> | 2012-02-22 11:49:15 -0800 |
---|---|---|
committer | David Sommerseth <davids@redhat.com> | 2012-06-13 12:19:44 +0200 |
commit | fe8a7f0cc25e6b9492bf0613025873c7a5f46ca5 (patch) | |
tree | bce29f958ac83b1d82d231a0763465309ef039c1 /src/openvpn/dhcp.h | |
parent | 21ae2ec2b963e33e1b48b6cf9069e774b3f656b1 (diff) | |
download | openvpn-fe8a7f0cc25e6b9492bf0613025873c7a5f46ca5.tar.gz openvpn-fe8a7f0cc25e6b9492bf0613025873c7a5f46ca5.tar.xz openvpn-fe8a7f0cc25e6b9492bf0613025873c7a5f46ca5.zip |
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 <debrabander@gmail.com>
Acked-by: Gert Doering <gert@greenie.muc.de>
Message-Id: eb2837a3-ce55-4f52-b2fe-f822efc661f7@l14g2000vbe.googlegroups.com
URL: http://article.gmane.org/gmane.network.openvpn.devel/5591
Signed-off-by: David Sommerseth <davids@redhat.com>
Diffstat (limited to 'src/openvpn/dhcp.h')
0 files changed, 0 insertions, 0 deletions