mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2024-11-08 20:28:43 +00:00
BSD: Use ip_mreqn on FreeBSD 12.1+ and OpenBSD 6.9+
This commit is contained in:
parent
b2d1212879
commit
a6b6a82b58
@ -15,9 +15,23 @@
|
|||||||
#ifdef __FreeBSD__
|
#ifdef __FreeBSD__
|
||||||
/* Should be defined in sysdep/cf/bsd.h, but it is flavor-specific */
|
/* Should be defined in sysdep/cf/bsd.h, but it is flavor-specific */
|
||||||
#define CONFIG_DONTROUTE_UNICAST
|
#define CONFIG_DONTROUTE_UNICAST
|
||||||
|
|
||||||
|
#if __FreeBSD_version >= 1201000
|
||||||
#define CONFIG_USE_IP_MREQN
|
#define CONFIG_USE_IP_MREQN
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
#ifdef __OpenBSD__
|
||||||
|
|
||||||
|
#if OpenBSD >= 202105
|
||||||
|
#define CONFIG_USE_IP_MREQN
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
#ifdef __NetBSD__
|
#ifdef __NetBSD__
|
||||||
|
|
||||||
#ifndef IP_RECVTTL
|
#ifndef IP_RECVTTL
|
||||||
@ -30,6 +44,7 @@
|
|||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
#ifdef __DragonFly__
|
#ifdef __DragonFly__
|
||||||
#define TCP_MD5SIG TCP_SIGNATURE_ENABLE
|
#define TCP_MD5SIG TCP_SIGNATURE_ENABLE
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user