X-Git-Url: http://git.archive.openwrt.org/?a=blobdiff_plain;f=interface-ip.h;h=68bfdf647360a4aba319653f2ecc3adf9ec3437a;hb=257bfc6392bf8a1c215f0bd6889db4694a405c1d;hp=112c61b0d7216253ef61d1e1a5f6d34165514830;hpb=8fb283ca6f9fda0b6cd01a2c7fb6e01ac3c44886;p=project%2Fnetifd.git diff --git a/interface-ip.h b/interface-ip.h index 112c61b..68bfdf6 100644 --- a/interface-ip.h +++ b/interface-ip.h @@ -9,11 +9,11 @@ enum device_addr_flags { DEVADDR_INET6 = (1 << 0), DEVADDR_FAMILY = DEVADDR_INET4 | DEVADDR_INET6, - /* device route (no gateway) */ - DEVADDR_DEVICE = (1 << 1), - /* externally added address */ DEVADDR_EXTERNAL = (1 << 2), + + /* route overrides the default interface metric */ + DEVROUTE_METRIC = (1 << 3) }; union if_addr { @@ -27,7 +27,8 @@ struct device_addr { enum device_addr_flags flags; bool enabled; - struct device *device; + /* ipv4 only */ + uint32_t broadcast; /* must be last */ unsigned int mask; @@ -42,7 +43,6 @@ struct device_route { bool keep; union if_addr nexthop; - struct device *device; int metric; int mtu;