]> git.ipfire.org Git - thirdparty/systemd.git/blob - src/shared/local-addresses.h
Merge pull request #14592 from keszybz/simplifications
[thirdparty/systemd.git] / src / shared / local-addresses.h
1 /* SPDX-License-Identifier: LGPL-2.1+ */
2 #pragma once
3
4 #include "sd-netlink.h"
5
6 #include "in-addr-util.h"
7
8 struct local_address {
9 int family, ifindex;
10 unsigned char scope;
11 uint32_t metric;
12 union in_addr_union address;
13 };
14
15 int local_addresses(sd_netlink *rtnl, int ifindex, int af, struct local_address **ret);
16
17 int local_gateways(sd_netlink *rtnl, int ifindex, int af, struct local_address **ret);