mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-02-20 11:40:33 +01:00
platform/netlink: add nla_get_be64() helper
This commit is contained in:
parent
fac357ac8b
commit
bc7bf3c861
1 changed files with 8 additions and 0 deletions
|
|
@ -211,6 +211,14 @@ nla_get_u64 (const struct nlattr *nla)
|
|||
return unaligned_read_ne64 (nla_data (nla));
|
||||
}
|
||||
|
||||
static inline uint64_t
|
||||
nla_get_be64 (const struct nlattr *nla)
|
||||
{
|
||||
nm_assert (nla_len (nla) >= sizeof (uint64_t));
|
||||
|
||||
return unaligned_read_be64 (nla_data (nla));
|
||||
}
|
||||
|
||||
static inline char *
|
||||
nla_get_string (const struct nlattr *nla)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue