Skip to content

Commit

Permalink
compat: backport NLA policy macros
Browse files Browse the repository at this point in the history
Signed-off-by: Jason A. Donenfeld <[email protected]>
  • Loading branch information
zx2c4 committed Aug 27, 2020
1 parent a28032f commit dace9d0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/compat/compat.h
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit dace9d0

Please sign in to comment.