chiark / gitweb /
remove unused includes
[elogind.git] / src / libsystemd / sd-rtnl / local-addresses.h
index d3dff8b8b0f2a1d7a67b09f052e3db6470ff08be..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 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);