From: Krzysztof Piotr Oledzki Date: Mon, 21 Jul 2008 17:01:14 +0000 (-0700) Subject: netlink: add NLA_PUT_BE64 macro X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=07a7c1070ed382ad4562e3a0d453fd2001d92f7b;p=GitHub%2FLineageOS%2Fandroid_kernel_samsung_universal7580.git netlink: add NLA_PUT_BE64 macro Add NLA_PUT_BE64 macro required for 64bit counters in netfilter Signed-off-by: Krzysztof Piotr Oledzki Signed-off-by: Patrick McHardy Signed-off-by: David S. Miller --- diff --git a/include/net/netlink.h b/include/net/netlink.h index dfc3701dfcc..18024b8cecb 100644 --- a/include/net/netlink.h +++ b/include/net/netlink.h @@ -896,6 +896,9 @@ static inline int nla_put_msecs(struct sk_buff *skb, int attrtype, #define NLA_PUT_U64(skb, attrtype, value) \ NLA_PUT_TYPE(skb, u64, attrtype, value) +#define NLA_PUT_BE64(skb, attrtype, value) \ + NLA_PUT_TYPE(skb, __be64, attrtype, value) + #define NLA_PUT_STRING(skb, attrtype, value) \ NLA_PUT(skb, attrtype, strlen(value) + 1, value)