From dace9d04b9ab94e07104ffa8435ec49af48f7e3f Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Thu, 27 Aug 2020 09:55:29 +0200 Subject: compat: backport NLA policy macros Signed-off-by: Jason A. Donenfeld --- src/compat/compat.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/compat/compat.h') diff --git a/src/compat/compat.h b/src/compat/compat.h index 4dff967..9f6e725 100644 --- a/src/compat/compat.h +++ b/src/compat/compat.h @@ -834,10 +834,10 @@ static inline void skb_mark_not_on_list(struct sk_buff *skb) #endif #if LINUX_VERSION_CODE < KERNEL_VERSION(4, 20, 0) && !defined(ISRHEL8) -#define NLA_EXACT_LEN NLA_UNSPEC +#define NLA_POLICY_EXACT_LEN(_len) { .type = NLA_UNSPEC, .len = _len } #endif #if LINUX_VERSION_CODE < KERNEL_VERSION(5, 2, 0) && !defined(ISRHEL8) -#define NLA_MIN_LEN NLA_UNSPEC +#define NLA_POLICY_MIN_LEN(_len) { .type = NLA_UNSPEC, .len = _len } #define COMPAT_CANNOT_INDIVIDUAL_NETLINK_OPS_POLICY #endif -- cgit v1.2.3