From a80cd4707464cedb526eb72e7704b097af20beb7 Mon Sep 17 00:00:00 2001 From: "Alexander V. Chernikov" Date: Fri, 9 Dec 2022 15:59:06 +0100 Subject: Netlink on FreeBSD support MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Netlink support was added to FreeBSD recently. It is not as full-featured as its Linux counterpart yet, however the added subset is enough to make a routing daemon work. Specifically, it supports multiple tables, multipath, nexthops and nexthops groups. No MPLS support yet. The attached change adds 'bsd-netlink’ sysconf target, allowing to build both netlink & rtsock versions on FreeBSD. --- sysdep/cf/linux.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'sysdep/cf/linux.h') diff --git a/sysdep/cf/linux.h b/sysdep/cf/linux.h index 56ecf017..85598c10 100644 --- a/sysdep/cf/linux.h +++ b/sysdep/cf/linux.h @@ -17,6 +17,8 @@ #define CONFIG_INCLUDE_SYSIO_H "sysdep/linux/sysio.h" #define CONFIG_INCLUDE_KRTSYS_H "sysdep/linux/krt-sys.h" +#define CONFIG_LINUX_NETLINK + #define CONFIG_RESTRICTED_PRIVILEGES #define CONFIG_INCLUDE_SYSPRIV_H "sysdep/linux/syspriv.h" -- cgit v1.2.3