From 8988264a64dc9985303332568832b108dba3acd3 Mon Sep 17 00:00:00 2001 From: "Ondrej Zajicek (work)" Date: Fri, 14 Jan 2022 23:15:05 +0100 Subject: [PATCH] Netlink: Add workaround for older kernel headers --- sysdep/linux/netlink.c | 4 ++++ 1 file changed, 4 insertions(+) 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)