diff options
Diffstat (limited to '')
-rw-r--r-- | src/shared/local-addresses.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/shared/local-addresses.h b/src/shared/local-addresses.h index 38a17d2..399d0c6 100644 --- a/src/shared/local-addresses.h +++ b/src/shared/local-addresses.h @@ -6,12 +6,16 @@ #include "in-addr-util.h" struct local_address { - int family, ifindex; + int ifindex; unsigned char scope; - uint32_t metric; + uint32_t priority; + uint32_t weight; + int family; union in_addr_union address; }; +bool has_local_address(const struct local_address *addresses, size_t n_addresses, const struct local_address *needle); + int local_addresses(sd_netlink *rtnl, int ifindex, int af, struct local_address **ret); int local_gateways(sd_netlink *rtnl, int ifindex, int af, struct local_address **ret); |