Commit 07a7c1070ed382ad4562e3a0d453fd2001d92f7b
Committed by
David S. Miller
1 parent
0dbff689c2
Exists in
master
and in
7 other branches
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>
Showing 1 changed file with 3 additions and 0 deletions Side-by-side Diff
include/net/netlink.h
... | ... | @@ -896,6 +896,9 @@ |
896 | 896 | #define NLA_PUT_U64(skb, attrtype, value) \ |
897 | 897 | NLA_PUT_TYPE(skb, u64, attrtype, value) |
898 | 898 | |
899 | +#define NLA_PUT_BE64(skb, attrtype, value) \ | |
900 | + NLA_PUT_TYPE(skb, __be64, attrtype, value) | |
901 | + | |
899 | 902 | #define NLA_PUT_STRING(skb, attrtype, value) \ |
900 | 903 | NLA_PUT(skb, attrtype, strlen(value) + 1, value) |
901 | 904 |