route->flags |= DEVROUTE_METRIC;
}
- if ((cur = tb[ROUTE_MTU]) != NULL)
+ if ((cur = tb[ROUTE_MTU]) != NULL) {
route->mtu = blobmsg_get_u32(cur);
+ route->flags |= DEVROUTE_MTU;
+ }
vlist_add(&ip->route, &route->node, &route->flags);
return;
/* route overrides the default interface metric */
DEVROUTE_METRIC = (1 << 3),
+ /* route overrides the default interface mtu */
+ DEVROUTE_MTU = (1 << 4),
+
/* route automatically added by kernel */
- DEVADDR_KERNEL = (1 << 4),
+ DEVADDR_KERNEL = (1 << 5),
};
union if_addr {