]>
Commit | Line | Data |
---|---|---|
53e1b683 | 1 | /* SPDX-License-Identifier: LGPL-2.1+ */ |
05d3a176 | 2 | #pragma once |
8041b5ba | 3 | |
1c4baffc | 4 | #include "sd-netlink.h" |
71d35b6b | 5 | |
3b653205 | 6 | #include "in-addr-util.h" |
5502f0d9 | 7 | |
e80af1bd | 8 | struct local_address { |
0dd25fb9 LP |
9 | int family, ifindex; |
10 | unsigned char scope; | |
e9140aff | 11 | uint32_t metric; |
5502f0d9 | 12 | union in_addr_union address; |
8041b5ba LP |
13 | }; |
14 | ||
1c4baffc | 15 | int local_addresses(sd_netlink *rtnl, int ifindex, int af, struct local_address **ret); |
e9140aff | 16 | |
1c4baffc | 17 | int local_gateways(sd_netlink *rtnl, int ifindex, int af, struct local_address **ret); |