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:
27cecc1
)
netifd: Apply interface metric on configured interface gateway parameters
author
Hans Dedecker
<dedeckeh@gmail.com>
Wed, 7 May 2014 09:19:04 +0000
(09:19 +0000)
committer
Steven Barth
<steven@midlink.org>
Fri, 9 May 2014 13:50:33 +0000
(15:50 +0200)
Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
proto.c
patch
|
blob
|
history
diff --git
a/proto.c
b/proto.c
index 3a7b2a832348b801998c11acb8327adaeed29fd3..0ba2fbe908486516c237e6999168938c1f1f7141 100644
(file)
--- a/
proto.c
+++ b/
proto.c
@@
-270,6
+270,7
@@
parse_gateway_option(struct interface *iface, struct blob_attr *attr, bool v6)
route->mask = 0;
route->flags = (v6 ? DEVADDR_INET6 : DEVADDR_INET4);
+ route->metric = iface->metric;
unsigned int table = (v6) ? iface->ip6table : iface->ip4table;
if (table) {