]>
Commit | Line | Data |
---|---|---|
53e1b683 | 1 | /* SPDX-License-Identifier: LGPL-2.1+ */ |
05d3a176 | 2 | #pragma once |
8041b5ba LP |
3 | |
4 | /*** | |
cbc06dcd | 5 | This file is part of systemd. |
8041b5ba LP |
6 | |
7 | Copyright 2008-2011 Lennart Poettering | |
8 | ||
cbc06dcd TG |
9 | systemd is free software; you can redistribute it and/or modify it |
10 | under the terms of the GNU Lesser General Public License as published by | |
11 | the Free Software Foundation; either version 2.1 of the License, or | |
12 | (at your option) any later version. | |
8041b5ba | 13 | |
cbc06dcd TG |
14 | systemd is distributed in the hope that it will be useful, but |
15 | WITHOUT ANY WARRANTY; without even the implied warranty of | |
8041b5ba LP |
16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
17 | Lesser General Public License for more details. | |
18 | ||
cbc06dcd TG |
19 | You should have received a copy of the GNU Lesser General Public License |
20 | along with systemd; If not, see <http://www.gnu.org/licenses/>. | |
8041b5ba LP |
21 | ***/ |
22 | ||
8041b5ba | 23 | |
1c4baffc | 24 | #include "sd-netlink.h" |
71d35b6b | 25 | |
3b653205 | 26 | #include "in-addr-util.h" |
5502f0d9 | 27 | |
e80af1bd | 28 | struct local_address { |
0dd25fb9 LP |
29 | int family, ifindex; |
30 | unsigned char scope; | |
e9140aff | 31 | uint32_t metric; |
5502f0d9 | 32 | union in_addr_union address; |
8041b5ba LP |
33 | }; |
34 | ||
1c4baffc | 35 | int local_addresses(sd_netlink *rtnl, int ifindex, int af, struct local_address **ret); |
e9140aff | 36 | |
1c4baffc | 37 | int local_gateways(sd_netlink *rtnl, int ifindex, int af, struct local_address **ret); |