Skip to content

Commit dace9d0

Browse files
committed
compat: backport NLA policy macros
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
1 parent a28032f commit dace9d0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/compat/compat.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -834,10 +834,10 @@ static inline void skb_mark_not_on_list(struct sk_buff *skb)
834834
#endif
835835

836836
#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 20, 0) && !defined(ISRHEL8)
837-
#define NLA_EXACT_LEN NLA_UNSPEC
837+
#define NLA_POLICY_EXACT_LEN(_len) { .type = NLA_UNSPEC, .len = _len }
838838
#endif
839839
#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 2, 0) && !defined(ISRHEL8)
840-
#define NLA_MIN_LEN NLA_UNSPEC
840+
#define NLA_POLICY_MIN_LEN(_len) { .type = NLA_UNSPEC, .len = _len }
841841
#define COMPAT_CANNOT_INDIVIDUAL_NETLINK_OPS_POLICY
842842
#endif
843843

0 commit comments

Comments
 (0)