From d036d4aaef0edb334ff0a7a28af8befdde939070 Mon Sep 17 00:00:00 2001 From: Hauke Mehrtens Date: Sat, 22 Feb 2014 21:54:26 +0100 Subject: [PATCH] backports: add NLA_S{9,16,32,64} This is needed by net/ieee802154/nl_policy.c Signed-off-by: Hauke Mehrtens --- backport/backport-include/net/netlink.h | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/backport/backport-include/net/netlink.h b/backport/backport-include/net/netlink.h index 3cf623187725..4f8308adbada 100644 --- a/backport/backport-include/net/netlink.h +++ b/backport/backport-include/net/netlink.h @@ -130,4 +130,15 @@ static inline int nla_put_be64(struct sk_buff *skb, int attrtype, __be64 value) } #endif /* < 3.5 */ +#if (LINUX_VERSION_CODE < KERNEL_VERSION(3,7,0)) +#define NLA_S8 (NLA_BINARY + 1) +#define NLA_S16 (NLA_BINARY + 2) +#define NLA_S32 (NLA_BINARY + 3) +#define NLA_S64 (NLA_BINARY + 4) +#define __NLA_TYPE_MAX (NLA_BINARY + 5) + +#undef NLA_TYPE_MAX +#define NLA_TYPE_MAX (__NLA_TYPE_MAX - 1) +#endif + #endif /* __BACKPORT_NET_NETLINK_H */ -- 2.30.2