diff options
author | Maria Matejka <mq@ucw.cz> | 2023-01-21 23:46:33 +0100 |
---|---|---|
committer | Maria Matejka <mq@ucw.cz> | 2023-01-21 23:46:33 +0100 |
commit | 0f9df6d1bdf801ead054ed9f71ca5486a2f94450 (patch) | |
tree | c2077e316716f1c2596627513f9be43e5671be52 /sysdep/cf | |
parent | 985c060342867b5f386ef2921d1dce2e0f2406e5 (diff) | |
parent | a80cd4707464cedb526eb72e7704b097af20beb7 (diff) |
Merge commit 'a80cd4707464cedb526eb72e7704b097af20beb7' into thread-next
Diffstat (limited to 'sysdep/cf')
-rw-r--r-- | sysdep/cf/bsd-netlink.h | 34 | ||||
-rw-r--r-- | sysdep/cf/linux.h | 2 |
2 files changed, 36 insertions, 0 deletions
diff --git a/sysdep/cf/bsd-netlink.h b/sysdep/cf/bsd-netlink.h new file mode 100644 index 00000000..09149dc4 --- /dev/null +++ b/sysdep/cf/bsd-netlink.h @@ -0,0 +1,34 @@ +/* + * Configuration for FreeBSD based systems with netlink support + * + * (c) 2022 Alexander Chernikov <melifaro@FreeBSD.org> + * + * Can be freely distributed and used under the terms of the GNU GPL. + */ + +#define CONFIG_AUTO_ROUTES +#define CONFIG_SELF_CONSCIOUS +#define CONFIG_MULTIPLE_TABLES +#define CONFIG_SINGLE_ROUTE + +#define CONFIG_SKIP_MC_BIND +#define CONFIG_NO_IFACE_BIND +#define CONFIG_USE_HDRINCL + +#define CONFIG_INCLUDE_SYSIO_H "sysdep/bsd/sysio.h" +#define CONFIG_INCLUDE_KRTSYS_H "sysdep/linux/krt-sys.h" + +#define CONFIG_FREEBSD_NETLINK + +#ifndef AF_MPLS +#define AF_MPLS 39 +#endif + +#ifndef SO_RCVBUFFORCE +#define SO_RCVBUFFORCE SO_RCVBUF +#endif + +/* +Link: sysdep/unix +Link: sysdep/bsd-netlink + */ 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" |