X-Git-Url: https://git.archive.openwrt.org/?p=project%2Fnetifd.git;a=blobdiff_plain;f=interface-ip.h;h=057f0d05526b66dfce511010ccd9c23ce28e9db2;hp=bf2cf73397f3e4c72760afc0f8a2a6142728ecae;hb=4f2a541e99b381c39b822ddaffb8f3941217463a;hpb=58d2488ffe9553b908d3e10826376adeeb55d67b diff --git a/interface-ip.h b/interface-ip.h index bf2cf73..057f0d0 100644 --- a/interface-ip.h +++ b/interface-ip.h @@ -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);