X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Flibsystemd%2Fsd-rtnl%2Flocal-addresses.h;h=ef7def530db50d5d52b81c3228a6143ca46fc8da;hb=2263bb9a92f25571f837700cfee4fb79721baf46;hp=d3dff8b8b0f2a1d7a67b09f052e3db6470ff08be;hpb=3b653205cf7bd3851befd0a9f6a3ded6e267c173;p=elogind.git diff --git a/src/libsystemd/sd-rtnl/local-addresses.h b/src/libsystemd/sd-rtnl/local-addresses.h index d3dff8b8b..ef7def530 100644 --- a/src/libsystemd/sd-rtnl/local-addresses.h +++ b/src/libsystemd/sd-rtnl/local-addresses.h @@ -26,12 +26,16 @@ #include #include +#include "sd-rtnl.h" #include "in-addr-util.h" struct local_address { - int ifindex; - unsigned char family, scope; + int family, ifindex; + unsigned char scope; + uint32_t metric; union in_addr_union address; }; -int local_addresses(struct local_address **ret); +int local_addresses(sd_rtnl *rtnl, int ifindex, int af, struct local_address **ret); + +int local_gateways(sd_rtnl *rtnl, int ifindex, int af, struct local_address **ret);