projects
/
oweals
/
netifd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4b8e81a
)
system-dummy: add route metric information
author
Felix Fietkau
<nbd@openwrt.org>
Fri, 9 Mar 2012 09:57:13 +0000
(10:57 +0100)
committer
Felix Fietkau
<nbd@openwrt.org>
Fri, 9 Mar 2012 09:57:13 +0000
(10:57 +0100)
system-dummy.c
patch
|
blob
|
history
diff --git
a/system-dummy.c
b/system-dummy.c
index f2e3aed94d9feacf13d8901581304b8dd953e0c2..71dad0e9c244cd7f189ce5ae15c2c5662aef6662 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;
}