From 38c29e0bccabca0956498814729b2177b27e48a9 Mon Sep 17 00:00:00 2001 From: Hans Dedecker Date: Wed, 7 May 2014 09:19:04 +0000 Subject: netifd: Apply interface metric on configured interface gateway parameters Signed-off-by: Hans Dedecker --- proto.c | 1 + 1 file changed, 1 insertion(+) diff --git a/proto.c b/proto.c index 3a7b2a8..0ba2fbe 100644 --- 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) { -- cgit v1.2.3