diff options
author | Jozsef Kadlecsik <kadlec@blackhole.kfki.hu> | 2016-10-14 23:36:46 +0200 |
---|---|---|
committer | Jozsef Kadlecsik <kadlec@blackhole.kfki.hu> | 2016-10-14 23:36:46 +0200 |
commit | 5ad55ac803a8b4969fe5b0e7b526c2e1e890c226 (patch) | |
tree | 12f743c15ac9d205118e96a69ebced7973949826 /kernel/include/linux | |
parent | 2d22179ce6af4ed1932b875b171455df45f0ffc1 (diff) |
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 <kadlec@blackhole.kfki.hu>
Diffstat (limited to 'kernel/include/linux')
-rw-r--r-- | kernel/include/linux/netfilter/ipset/ip_set_compat.h.in | 4 |
1 files changed, 2 insertions, 2 deletions
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 |