aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/netlink.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/net/netlink.h')
-rw-r--r--include/net/netlink.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/include/net/netlink.h b/include/net/netlink.h
index 2a5dbcc90d1c..0e3172751755 100644
--- a/include/net/netlink.h
+++ b/include/net/netlink.h
@@ -1004,6 +1004,15 @@ static inline __be32 nla_get_be32(const struct nlattr *nla)
1004} 1004}
1005 1005
1006/** 1006/**
1007 * nla_get_le32 - return payload of __le32 attribute
1008 * @nla: __le32 netlink attribute
1009 */
1010static inline __le32 nla_get_le32(const struct nlattr *nla)
1011{
1012 return *(__le32 *) nla_data(nla);
1013}
1014
1015/**
1007 * nla_get_u16 - return payload of u16 attribute 1016 * nla_get_u16 - return payload of u16 attribute
1008 * @nla: u16 netlink attribute 1017 * @nla: u16 netlink attribute
1009 */ 1018 */
@@ -1066,6 +1075,15 @@ static inline __be64 nla_get_be64(const struct nlattr *nla)
1066} 1075}
1067 1076
1068/** 1077/**
1078 * nla_get_le64 - return payload of __le64 attribute
1079 * @nla: __le64 netlink attribute
1080 */
1081static inline __le64 nla_get_le64(const struct nlattr *nla)
1082{
1083 return *(__le64 *) nla_data(nla);
1084}
1085
1086/**
1069 * nla_get_s32 - return payload of s32 attribute 1087 * nla_get_s32 - return payload of s32 attribute
1070 * @nla: s32 netlink attribute 1088 * @nla: s32 netlink attribute
1071 */ 1089 */