summaryrefslogtreecommitdiff
path: root/sysdep/bsd-netlink/netlink-sys.h
diff options
context:
space:
mode:
authorMaria Matejka <mq@ucw.cz>2023-01-22 13:19:22 +0100
committerMaria Matejka <mq@ucw.cz>2023-01-22 13:19:22 +0100
commit521fec2fdc391ee468fd3f58f994609483e6a6eb (patch)
treecf78b05da718c8003332e25b0217f3769f964aaf /sysdep/bsd-netlink/netlink-sys.h
parent21c4c8eafb7125375b2e562cc0e7e9d52bbb1aaf (diff)
parent2b7643e1f8ecb0bd4cf9af4183b4fd53b655d19c (diff)
Merge commit '2b7643e1f8ecb0bd4cf9af4183b4fd53b655d19c' into thread-next
Diffstat (limited to 'sysdep/bsd-netlink/netlink-sys.h')
-rw-r--r--sysdep/bsd-netlink/netlink-sys.h29
1 files changed, 29 insertions, 0 deletions
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 <melifaro@FreeBSD.org>
+ *
+ * Can be freely distributed and used under the terms of the GNU GPL.
+ */
+
+#ifndef _BIRD_NETLINK_SYS_H_
+#define _BIRD_NETLINK_SYS_H_
+
+#include <netlink/netlink.h>
+#include <netlink/netlink_route.h>
+
+#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