summaryrefslogtreecommitdiffstats
path: root/src/shared/local-addresses.h
diff options
context:
space:
mode:
authorIvan Kruglov <mail@ikruglov.com>2024-09-24 14:56:16 +0200
committerIvan Kruglov <mail@ikruglov.com>2024-10-01 19:00:25 +0200
commitf1daf9fb74b6041f3ab31e130441682669c404ef (patch)
tree79d7ee2a51943147062fe891118760197757b5b8 /src/shared/local-addresses.h
parentseccomp-util: include @sandbox in @default (diff)
downloadsystemd-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.h2
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);