Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Krzysztof Piotr Oledzki and committed by
David S. Miller
07a7c107 0dbff689

+3
+3
include/net/netlink.h
··· 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