diff options
author | Thomas Haller <thaller@redhat.com> | 2023-11-27 19:45:40 (GMT) |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2023-11-29 15:03:40 (GMT) |
commit | 8b6dc8348b0388d4525c77345e00e180b0483278 (patch) | |
tree | bdb066574eaa6491ce5c99cc3c4a8b9f8bd9f6dd /include | |
parent | 057aac1334afd58f81319fa1e39a0eca48aea2b3 (diff) | |
download | libnl-8b6dc8348b0388d4525c77345e00e180b0483278.zip libnl-8b6dc8348b0388d4525c77345e00e180b0483278.tar.gz libnl-8b6dc8348b0388d4525c77345e00e180b0483278.tar.bz2 |
nl-aux-core: add _nl_addr_build() helper
Diffstat (limited to 'include')
-rw-r--r-- | include/nl-aux-core/nl-core.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/nl-aux-core/nl-core.h b/include/nl-aux-core/nl-core.h index 36bce3a..5b34bcb 100644 --- a/include/nl-aux-core/nl-core.h +++ b/include/nl-aux-core/nl-core.h @@ -49,4 +49,11 @@ void nl_socket_free(struct nl_sock *); _NL_AUTO_DEFINE_FCN_TYPED0(struct nl_sock *, _nl_auto_nl_socket_fcn, nl_socket_free); +struct nl_addr *nl_addr_build(int, const void *, size_t); + +static inline struct nl_addr *_nl_addr_build(int family, const void *buf) +{ + return nl_addr_build(family, buf, _nl_addr_family_to_size(family)); +} + #endif /* NETLINK_NL_AUTO_H_ */ |