summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorKrzysztof Piotr Oledzki <ole@ans.pl>2008-07-21 19:01:14 +0200
committerDavid S. Miller <davem@davemloft.net>2008-07-21 19:10:58 +0200
commit07a7c1070ed382ad4562e3a0d453fd2001d92f7b (patch)
tree0caf21395d1adf879888a355ffcb22c60a7545ae /include
parentnetfilter: nf_nat_core: eliminate useless find_appropriate_src for IP_NAT_RAN... (diff)
downloadlinux-07a7c1070ed382ad4562e3a0d453fd2001d92f7b.tar.xz
linux-07a7c1070ed382ad4562e3a0d453fd2001d92f7b.zip
netlink: add NLA_PUT_BE64 macro
Add NLA_PUT_BE64 macro required for 64bit counters in netfilter Signed-off-by: Krzysztof Piotr Oledzki <ole@ans.pl> Signed-off-by: Patrick McHardy <kaber@trash.net> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
-rw-r--r--include/net/netlink.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/net/netlink.h b/include/net/netlink.h
index dfc3701dfcc3..18024b8cecb8 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)