From: Jozsef Kadlecsik Date: Fri, 14 Oct 2016 21:36:46 +0000 (+0200) Subject: Fix the nla_put_net64() API changes backport X-Git-Tag: v6.30~5 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5ad55ac803a8b4969fe5b0e7b526c2e1e890c226;p=ipset Fix the nla_put_net64() API changes backport We must call nla_put_net64() because ipset uses net order in the netlink communication. Signed-off-by: Jozsef Kadlecsik --- diff --git a/kernel/include/linux/netfilter/ipset/ip_set_compat.h.in b/kernel/include/linux/netfilter/ipset/ip_set_compat.h.in index a4a54fd..6bd24e5 100644 --- a/kernel/include/linux/netfilter/ipset/ip_set_compat.h.in +++ b/kernel/include/linux/netfilter/ipset/ip_set_compat.h.in @@ -164,9 +164,9 @@ static inline int nla_put_net64(struct sk_buff *skb, int attrtype, __be64 value) #endif #ifdef HAVE_NLA_PUT_64BIT -#define IPSET_NLA_PUT_NET64(skb, t, v, pa) nla_put_be64(skb, t, v, pa) +#define IPSET_NLA_PUT_NET64(skb, t, v, pa) nla_put_net64(skb, t, v, pa) #else -#define IPSET_NLA_PUT_NET64(skb, t, v, pa) nla_put_be64(skb, t, v) +#define IPSET_NLA_PUT_NET64(skb, t, v, pa) nla_put_net64(skb, t, v) #endif #ifdef HAVE_NL_INFO_PORTID