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