From: Ondrej Zajicek Date: Sun, 18 Dec 2022 19:10:14 +0000 (+0100) Subject: BSD: Use ip_mreqn on FreeBSD 12.1+ and OpenBSD 6.9+ X-Git-Tag: v2.0.12~16 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=2b7643e1f8ecb0bd4cf9af4183b4fd53b655d19c;p=thirdparty%2Fbird.git BSD: Use ip_mreqn on FreeBSD 12.1+ and OpenBSD 6.9+ --- diff --git a/sysdep/bsd/sysio.h b/sysdep/bsd/sysio.h index 9fc584868..b6b42b1ec 100644 --- a/sysdep/bsd/sysio.h +++ b/sysdep/bsd/sysio.h @@ -15,9 +15,23 @@ #ifdef __FreeBSD__ /* Should be defined in sysdep/cf/bsd.h, but it is flavor-specific */ #define CONFIG_DONTROUTE_UNICAST + +#if __FreeBSD_version >= 1201000 +#define CONFIG_USE_IP_MREQN +#endif + +#endif + + +#ifdef __OpenBSD__ + +#if OpenBSD >= 202105 #define CONFIG_USE_IP_MREQN #endif +#endif + + #ifdef __NetBSD__ #ifndef IP_RECVTTL @@ -30,6 +44,7 @@ #endif + #ifdef __DragonFly__ #define TCP_MD5SIG TCP_SIGNATURE_ENABLE #endif