Hi, On Fri, Sep 16, 2016 at 09:02:42PM +0200, Gert Doering wrote: > NetBSD has introduced IP_PKTINFO and struct in_pktinfo, but does not > have the "ipi_spec_dst" structure element, causing compilation errors. > > Introduce a check for that (AC_CHECK_MEMBER) in configure.ac, and > change all "#ifdef HAVE_IN_PKTINFO" to also check "HAVE_IPI_SPEC_DST". > > Patch inspired by NetBSD pkgsrc patch set. > > (Note: with that patch, OpenVPN --multihome is still broken for IPv4 > on NetBSD 7.0.1 / amd64, but that's a different issue)
Just as a side note: tested on Linux (Gentoo 64bit), and "linux --multihome" still works correctly. That was the main risk of this patch: wrongly disable IP_PKTINFO for those platform(s) that should have it, because autoconf isn't finding the ipi_spec_dst element. gert -- USENET is *not* the non-clickable part of WWW! //www.muc.de/~gert/ Gert Doering - Munich, Germany g...@greenie.muc.de fax: +49-89-35655025 g...@net.informatik.tu-muenchen.de
signature.asc
Description: PGP signature
------------------------------------------------------------------------------
_______________________________________________ Openvpn-devel mailing list Openvpn-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openvpn-devel