projects
/
project
/
netifd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
store a pointer to the active interface as part of the device route
[project/netifd.git]
/
interface-ip.c
diff --git
a/interface-ip.c
b/interface-ip.c
index
3494731
..
c0ba381
100644
(file)
--- a/
interface-ip.c
+++ b/
interface-ip.c
@@
-94,6
+94,7
@@
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;