summaryrefslogtreecommitdiffstats
path: root/syshead.h
diff options
context:
space:
mode:
authorJuanJo Ciarlante <juanjosec@gmail.com>2011-03-22 21:59:23 +0100
committerJuanJo Ciarlante <juanjosec@gmail.com>2011-03-25 13:30:32 +0100
commitd3774cdf1e3c2f4e86fac52a723a3869b75b5b4e (patch)
tree37264ab14a91189a1a6ae1bf7f8ffd94c9330060 /syshead.h
parentc47fd4b35cc99130c4177fd6b19ed2e0b4776756 (diff)
downloadopenvpn-d3774cdf1e3c2f4e86fac52a723a3869b75b5b4e.tar.gz
openvpn-d3774cdf1e3c2f4e86fac52a723a3869b75b5b4e.tar.xz
openvpn-d3774cdf1e3c2f4e86fac52a723a3869b75b5b4e.zip
* ipv6-0.4.15: add --multihome support to xBSD
- _both_ for IPv4 (which was missing) and for IPv6 - tested on OpenBSD 4.7, FreeBSD 8.1
Diffstat (limited to 'syshead.h')
-rw-r--r--syshead.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/syshead.h b/syshead.h
index d589531..9dbb501 100644
--- a/syshead.h
+++ b/syshead.h
@@ -390,9 +390,10 @@
#endif
/*
- * Does this platform support linux-style IP_PKTINFO?
+ * Does this platform support linux-style IP_PKTINFO
+ * or bsd-style IP_RECVDSTADDR ?
*/
-#if defined(ENABLE_MULTIHOME) && defined(HAVE_IN_PKTINFO) && defined(IP_PKTINFO) && defined(HAVE_MSGHDR) && defined(HAVE_CMSGHDR) && defined(HAVE_IOVEC) && defined(CMSG_FIRSTHDR) && defined(CMSG_NXTHDR) && defined(HAVE_RECVMSG) && defined(HAVE_SENDMSG)
+#if defined(ENABLE_MULTIHOME) && ((defined(HAVE_IN_PKTINFO)&&defined(IP_PKTINFO)) || defined(IP_RECVDSTADDR)) && defined(HAVE_MSGHDR) && defined(HAVE_CMSGHDR) && defined(HAVE_IOVEC) && defined(CMSG_FIRSTHDR) && defined(CMSG_NXTHDR) && defined(HAVE_RECVMSG) && defined(HAVE_SENDMSG)
#define ENABLE_IP_PKTINFO 1
#else
#define ENABLE_IP_PKTINFO 0