Skip to contentSkip to conversation

Netlink: add NLA_PUT_BE64 macro

PATCH Applied Krzysztof Piotr Oledzki 2 participants 2 messages Jun 19, 2008 – Jun 24, 2008

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/2 Netlink: add NLA_PUT_BE64 macro

Quoted 1 line

From bb5c78816df6d9506f5e0aa1c1e7432dcd6efc0d Mon Sep 17 00:00:00 2001

From: Krzysztof Piotr Oledzki <[email protected]>
Date: Mon, 16 Jun 2008 22:48:49 +0200
Subject: Netlink: add NLA_PUT_BE64 macro

Add NLA_PUT_BE64 macro required for 64bit counters in netfilter

---
 include/net/netlink.h |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
include/net/netlink.h +3 -0
index 112dcdf..4518490 100644
@@ -898,6 +898,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)
 
Signature · 1 line
1.5.5.4
#1 lore raw
Quoted 6 lines · Krzysztof Piotr Oledzki
Quoted 1 line

From bb5c78816df6d9506f5e0aa1c1e7432dcd6efc0d Mon Sep 17 00:00:00 2001

From: Krzysztof Piotr Oledzki <[email protected]>
Date: Mon, 16 Jun 2008 22:48:49 +0200
Subject: Netlink: add NLA_PUT_BE64 macro

Add NLA_PUT_BE64 macro required for 64bit counters in netfilter

Applied, thanks.