From: Krzysztof Piotr Oledzki Date: Mon, 21 Jul 2008 17:01:14 +0000 (-0700) Subject: netlink: add NLA_PUT_BE64 macro X-Git-Tag: upstream/snapshot3+hdmi~24143^2~30 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=07a7c1070ed382ad4562e3a0d453fd2001d92f7b;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.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 dfc3701..18024b8 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)