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