projects
/
project
/
netifd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
system-dummy: add route metric information
[project/netifd.git]
/
system-dummy.c
diff --git
a/system-dummy.c
b/system-dummy.c
index
f2e3aed
..
71dad0e
100644
(file)
--- a/
system-dummy.c
+++ b/
system-dummy.c
@@
-159,6
+159,9
@@
int system_add_route(struct device *dev, struct device_route *route)
if (route->flags & DEVADDR_DEVICE)
sprintf(devstr, " dev %s", dev->ifname);
+ if (route->metric > 0)
+ sprintf(devstr, " metric %d", route->metric);
+
D(SYSTEM, "route add %s%s%s\n", addr, gw, devstr);
return 0;
}