Netlink: add NLA_PUT_BE64 macro
Subsystems (2)
PATCH 1/2 Netlink: add NLA_PUT_BE64 macro
Quoted 1 line
From
bb5c78816df6d9506f5e0aa1c1e7432dcd6efc0dMon 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
Signed-off-by Krzysztof Piotr Oledzki <[email protected]>
--- include/net/netlink.h | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-)
include/net/netlink.h +3 -0
@@ -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
Patrick McHardy
AppliedQuoted 6 lines · Krzysztof Piotr Oledzki
Quoted 1 line
From
bb5c78816df6d9506f5e0aa1c1e7432dcd6efc0dMon Sep 17 00:00:00 2001From: Krzysztof Piotr Oledzki <[email protected]>
Date: Mon, 16 Jun 2008 22:48:49 +0200
Subject: Netlink: addNLA_PUT_BE64macroAdd
NLA_PUT_BE64macro required for 64bit counters in netfilter
Applied, thanks.