]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
BSD: Use ip_mreqn on FreeBSD 12.1+ and OpenBSD 6.9+
authorOndrej Zajicek <santiago@crfreenet.org>
Sun, 18 Dec 2022 19:10:14 +0000 (20:10 +0100)
committerOndrej Zajicek <santiago@crfreenet.org>
Sun, 18 Dec 2022 19:23:46 +0000 (20:23 +0100)
sysdep/bsd/sysio.h

index 9fc584868a03afc3531f07780f8f41eaac8d4bd8..b6b42b1eca34c8d45464c77cda932842d45c7edc 100644 (file)
 #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