summaryrefslogtreecommitdiff
path: root/sysdep/bsd
diff options
context:
space:
mode:
authorOndrej Zajicek <santiago@crfreenet.org>2022-12-18 20:10:14 +0100
committerOndrej Zajicek <santiago@crfreenet.org>2022-12-18 20:23:46 +0100
commit2b7643e1f8ecb0bd4cf9af4183b4fd53b655d19c (patch)
treeec5bb0db31550643956462c2e640853b02f18722 /sysdep/bsd
parent6825f94570b05f933f09ae1bd7e520954d903e6a (diff)
BSD: Use ip_mreqn on FreeBSD 12.1+ and OpenBSD 6.9+
Diffstat (limited to 'sysdep/bsd')
-rw-r--r--sysdep/bsd/sysio.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/sysdep/bsd/sysio.h b/sysdep/bsd/sysio.h
index 9fc58486..b6b42b1e 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