1 /* SPDX-License-Identifier: LGPL-2.1-or-later */
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);
18 
19 int local_outbounds(sd_netlink *rtnl, int ifindex, int af, struct local_address **ret);
20