Skip to content

Commit

Permalink
nl-aux-core: add _nl_addr_build() helper
Browse files Browse the repository at this point in the history
  • Loading branch information
thom311 committed Nov 29, 2023
1 parent 057aac1 commit 8b6dc83
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions include/nl-aux-core/nl-core.h
Original file line number Diff line number Diff line change
Expand Up @@ -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_ */

0 comments on commit 8b6dc83

Please sign in to comment.