All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] Netlink: add NLA_PUT_BE64 macro
@ 2008-06-19 11:00 Krzysztof Piotr Oledzki
  2008-06-24 15:23 ` Patrick McHardy
  0 siblings, 1 reply; 2+ messages in thread
From: Krzysztof Piotr Oledzki @ 2008-06-19 11:00 UTC (permalink / raw)
  To: netfilter-devel

>From bb5c78816df6d9506f5e0aa1c1e7432dcd6efc0d Mon Sep 17 00:00:00 2001
From: Krzysztof Piotr Oledzki <ole@ans.pl>
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

Signed-off-by: Krzysztof Piotr Oledzki <ole@ans.pl>
---
 include/net/netlink.h |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/include/net/netlink.h b/include/net/netlink.h
index 112dcdf..4518490 100644
--- a/include/net/netlink.h
+++ b/include/net/netlink.h
@@ -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)
 
-- 
1.5.5.4


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH 1/2] Netlink: add NLA_PUT_BE64 macro
  2008-06-19 11:00 [PATCH 1/2] Netlink: add NLA_PUT_BE64 macro Krzysztof Piotr Oledzki
@ 2008-06-24 15:23 ` Patrick McHardy
  0 siblings, 0 replies; 2+ messages in thread
From: Patrick McHardy @ 2008-06-24 15:23 UTC (permalink / raw)
  To: Krzysztof Piotr Oledzki; +Cc: netfilter-devel

Krzysztof Piotr Oledzki wrote:
>>From bb5c78816df6d9506f5e0aa1c1e7432dcd6efc0d Mon Sep 17 00:00:00 2001
> From: Krzysztof Piotr Oledzki <ole@ans.pl>
> 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.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-06-24 15:23 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-06-19 11:00 [PATCH 1/2] Netlink: add NLA_PUT_BE64 macro Krzysztof Piotr Oledzki
2008-06-24 15:23 ` Patrick McHardy

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.