projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0dbff68
)
netlink: add NLA_PUT_BE64 macro
author
Krzysztof Piotr Oledzki
<ole@ans.pl>
Mon, 21 Jul 2008 17:01:14 +0000
(10:01 -0700)
committer
David S. Miller
<davem@davemloft.net>
Mon, 21 Jul 2008 17:10:58 +0000
(10:10 -0700)
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>
include/net/netlink.h
patch
|
blob
|
history
diff --git
a/include/net/netlink.h
b/include/net/netlink.h
index dfc3701dfcc3ecf5c05c5ccfb02bd10363873c9c..18024b8cecb84ed5c23fdb812859f4229e80549c 100644
(file)
--- 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)