aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOndrej Zajicek (work) <santiago@crfreenet.org>2022-01-14 23:15:05 +0100
committerOndrej Zajicek (work) <santiago@crfreenet.org>2022-01-14 23:15:05 +0100
commit8988264a64dc9985303332568832b108dba3acd3 (patch)
tree2bc7e110f85ed5eb378ec8610bc6f903d3342fc7
parente818f16448e918ed07633480291283f3449dd9e4 (diff)
downloadbird-8988264a64dc9985303332568832b108dba3acd3.tar.gz
Netlink: Add workaround for older kernel headers
-rw-r--r--sysdep/linux/netlink.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sysdep/linux/netlink.c b/sysdep/linux/netlink.c
index 71b290fd..27b1a617 100644
--- a/sysdep/linux/netlink.c
+++ b/sysdep/linux/netlink.c
@@ -69,6 +69,10 @@
#define RTA_ENCAP 22
#endif
+#ifndef NETLINK_GET_STRICT_CHK
+#define NETLINK_GET_STRICT_CHK 12
+#endif
+
#define krt_ipv4(p) ((p)->af == AF_INET)
#define krt_ecmp6(p) ((p)->af == AF_INET6)