chiark / gitweb /
tree-wide: there is no ENOTSUP on linux
[elogind.git] / src / libsystemd / sd-rtnl / local-addresses.h
index b1ed6341f6e76d384a08f4102e292089f6461b6a..bdc28d35102c12674a6b8596468f70198939df7f 100644 (file)
   along with systemd; If not, see <http://www.gnu.org/licenses/>.
 ***/
 
-#include <inttypes.h>
-#include <sys/types.h>
-#include <assert.h>
-#include <sys/socket.h>
 
 #include "sd-rtnl.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_rtnl *rtnl, int ifindex, 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);