summaryrefslogtreecommitdiff
path: root/sysdep/cf
diff options
context:
space:
mode:
authorAlexander Chernikov <melifaro@FreeBSD.org>2022-12-16 19:20:05 +0100
committerOndrej Zajicek <santiago@crfreenet.org>2022-12-16 19:21:51 +0100
commit176fc68aed32a5675aa643e3b7c6f65ff9ad13d0 (patch)
tree3113e0d0a2d48bab4aec48134fd89c7db7d9b174 /sysdep/cf
parent7b6c9649775b288653b0d61df6004d79f0d83ccf (diff)
Netlink: move OS-specific headers and defines to sysdep
Minor changes from committer.
Diffstat (limited to 'sysdep/cf')
-rw-r--r--sysdep/cf/bsd-netlink.h11
-rw-r--r--sysdep/cf/linux.h1
2 files changed, 2 insertions, 10 deletions
diff --git a/sysdep/cf/bsd-netlink.h b/sysdep/cf/bsd-netlink.h
index 09149dc4..69297867 100644
--- a/sysdep/cf/bsd-netlink.h
+++ b/sysdep/cf/bsd-netlink.h
@@ -17,16 +17,7 @@
#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
+#define CONFIG_INCLUDE_NLSYS_H "sysdep/bsd-netlink/netlink-sys.h"
/*
Link: sysdep/unix
diff --git a/sysdep/cf/linux.h b/sysdep/cf/linux.h
index 85598c10..9c37dd8a 100644
--- a/sysdep/cf/linux.h
+++ b/sysdep/cf/linux.h
@@ -16,6 +16,7 @@
#define CONFIG_INCLUDE_SYSIO_H "sysdep/linux/sysio.h"
#define CONFIG_INCLUDE_KRTSYS_H "sysdep/linux/krt-sys.h"
+#define CONFIG_INCLUDE_NLSYS_H "sysdep/linux/netlink-sys.h"
#define CONFIG_LINUX_NETLINK