X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fnetifd.git;a=blobdiff_plain;f=interface-ip.h;h=197bd9a5a1c7e3304c7f3e3efc5a4128f00f425b;hp=bbef62ceb305f5f82ba8c1ffa2591ba39a92b3bb;hb=HEAD;hpb=d5f53f4d79231f59494da852b73d2d9d2b9c43cc diff --git a/interface-ip.h b/interface-ip.h index bbef62c..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 */