X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fnetifd.git;a=blobdiff_plain;f=interface-ip.h;h=197bd9a5a1c7e3304c7f3e3efc5a4128f00f425b;hp=f24b0ec38fef04932aeb2631e67fb31637c7c374;hb=9c8d7816fc5e966b0c0efab9c1234734e0c5c254;hpb=e911dd3a798a543d40b93fe8dcb0824bd011c621 diff --git a/interface-ip.h b/interface-ip.h index f24b0ec..197bd9a 100644 --- a/interface-ip.h +++ b/interface-ip.h @@ -31,8 +31,8 @@ enum device_addr_flags { /* route overrides the default interface mtu */ DEVROUTE_MTU = (1 << 4), - /* route automatically added by kernel */ - DEVADDR_KERNEL = (1 << 5), + /* route overrides the default proto type */ + DEVROUTE_PROTO = (1 << 5), /* address is off-link (no subnet-route) */ DEVADDR_OFFLINK = (1 << 6), @@ -59,6 +59,7 @@ struct device_prefix_assignment { struct list_head head; int32_t assigned; uint8_t length; + int weight; struct in6_addr addr; bool enabled; char name[]; @@ -92,6 +93,7 @@ struct device_route { union if_addr nexthop; int mtu; unsigned int type; + unsigned int proto; time_t valid_until; /* must be last */ @@ -110,6 +112,8 @@ struct device_addr { bool failed; unsigned int policy_table; + struct device_route subnet; + /* ipv4 only */ uint32_t broadcast; uint32_t point_to_point;