diff options
author | Felix Fietkau <nbd@openwrt.org> | 2012-05-04 12:21:54 +0200 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2012-05-04 12:21:54 +0200 |
commit | 46d52638f04c471a0e86d07ccae6a188f1a05ef5 (patch) | |
tree | 6baad5ca88128f2a11e505a561b1acdd3be7ca0c | |
parent | 4ca3248ff0bc0d7b12fa2f8077c91b18fc6e7676 (diff) |
move route interface assignment to the vlist update
-rw-r--r-- | interface-ip.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/interface-ip.c b/interface-ip.c index c0ba381..914ec07 100644 --- a/interface-ip.c +++ b/interface-ip.c @@ -94,7 +94,6 @@ interface_ip_add_route(struct interface *iface, struct blob_attr *attr, bool v6) if ((cur = tb[ROUTE_MTU]) != NULL) route->mtu = blobmsg_get_u32(cur); - route->iface = ip->iface; vlist_add(&ip->route, &route->node, &route->flags); return; @@ -214,6 +213,7 @@ interface_update_proto_route(struct vlist_tree *tree, if (!(route_new->flags & DEVADDR_EXTERNAL) && !keep && _enabled) system_add_route(dev, route_new); + route_new->iface = iface; route_new->enabled = _enabled; } } |