diff options
Diffstat (limited to 'src/libsystemd/sd-netlink/local-addresses.h')
-rw-r--r-- | src/libsystemd/sd-netlink/local-addresses.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/libsystemd/sd-netlink/local-addresses.h b/src/libsystemd/sd-netlink/local-addresses.h new file mode 100644 index 0000000..e88c5e5 --- /dev/null +++ b/src/libsystemd/sd-netlink/local-addresses.h @@ -0,0 +1,17 @@ +/* SPDX-License-Identifier: LGPL-2.1+ */ +#pragma once + +#include "sd-netlink.h" + +#include "in-addr-util.h" + +struct local_address { + int family, ifindex; + unsigned char scope; + uint32_t metric; + union in_addr_union address; +}; + +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); |