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