From 176fc68aed32a5675aa643e3b7c6f65ff9ad13d0 Mon Sep 17 00:00:00 2001 From: Alexander Chernikov Date: Fri, 16 Dec 2022 19:20:05 +0100 Subject: Netlink: move OS-specific headers and defines to sysdep Minor changes from committer. --- sysdep/bsd-netlink/netlink-sys.h | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 sysdep/bsd-netlink/netlink-sys.h (limited to 'sysdep/bsd-netlink/netlink-sys.h') diff --git a/sysdep/bsd-netlink/netlink-sys.h b/sysdep/bsd-netlink/netlink-sys.h new file mode 100644 index 00000000..a6e5052b --- /dev/null +++ b/sysdep/bsd-netlink/netlink-sys.h @@ -0,0 +1,29 @@ +/* + * Netlink FreeBSD-specific functions + * + * (c) 2022 Alexander Chernikov + * + * Can be freely distributed and used under the terms of the GNU GPL. + */ + +#ifndef _BIRD_NETLINK_SYS_H_ +#define _BIRD_NETLINK_SYS_H_ + +#include +#include + +#ifndef AF_MPLS +#define AF_MPLS 39 +#endif + +#ifndef SO_RCVBUFFORCE +#define SO_RCVBUFFORCE SO_RCVBUF +#endif + +static inline int +netlink_error_to_os(int error) +{ + return (error); +} + +#endif -- cgit v1.2.3