mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2024-11-08 12:18:42 +00:00
a80cd47074
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.
35 lines
704 B
C
35 lines
704 B
C
/*
|
|
* 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
|
|
*/
|