use /lib/netifd as main path when dummy mode is disabled
[project/netifd.git] / interface-ip.h
index bf2cf73..057f0d0 100644 (file)
@@ -24,6 +24,7 @@ struct device_addr {
 
        enum device_addr_flags flags;
 
+       /* must be last */
        unsigned int mask;
        union if_addr addr;
 };
@@ -34,9 +35,12 @@ struct device_route {
        enum device_addr_flags flags;
        bool keep;
 
+       union if_addr nexthop;
+       struct device *device;
+
+       /* must be last */
        unsigned int mask;
        union if_addr addr;
-       union if_addr nexthop;
 };
 
 void interface_ip_init(struct interface *iface);