diff options
author | Ivan Kruglov <mail@ikruglov.com> | 2024-09-24 14:56:16 +0200 |
---|---|---|
committer | Ivan Kruglov <mail@ikruglov.com> | 2024-10-01 19:00:25 +0200 |
commit | f1daf9fb74b6041f3ab31e130441682669c404ef (patch) | |
tree | 79d7ee2a51943147062fe891118760197757b5b8 /src/shared/local-addresses.h | |
parent | seccomp-util: include @sandbox in @default (diff) | |
download | systemd-f1daf9fb74b6041f3ab31e130441682669c404ef.tar.xz systemd-f1daf9fb74b6041f3ab31e130441682669c404ef.zip |
machine: generalise logic GetMachineAddresses to later use it in varlink interface
Diffstat (limited to '')
-rw-r--r-- | src/shared/local-addresses.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/shared/local-addresses.h b/src/shared/local-addresses.h index 399d0c6fb8..42abca7838 100644 --- a/src/shared/local-addresses.h +++ b/src/shared/local-addresses.h @@ -16,6 +16,8 @@ struct local_address { bool has_local_address(const struct local_address *addresses, size_t n_addresses, const struct local_address *needle); +int add_local_address(struct local_address **list, size_t *n_list, int ifindex, unsigned char scope, int family, const union in_addr_union *address); + int local_addresses(sd_netlink *rtnl, int ifindex, int af, struct local_address **ret); int local_gateways(sd_netlink *rtnl, int ifindex, int af, struct local_address **ret); |