]> granicus.if.org Git - ipset/commitdiff
Fix the nla_put_net64() API changes backport
authorJozsef Kadlecsik <kadlec@blackhole.kfki.hu>
Fri, 14 Oct 2016 21:36:46 +0000 (23:36 +0200)
committerJozsef Kadlecsik <kadlec@blackhole.kfki.hu>
Fri, 14 Oct 2016 21:36:46 +0000 (23:36 +0200)
We must call nla_put_net64() because ipset uses net order in the netlink
communication.

Signed-off-by: Jozsef Kadlecsik <kadlec@blackhole.kfki.hu>
kernel/include/linux/netfilter/ipset/ip_set_compat.h.in

index a4a54fd3e87c21c2503a21ceaddef4e60e096f48..6bd24e5402359c57168dbecd4c876001d4e7c551 100644 (file)
@@ -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