diff options
author | Hans Dedecker <dedeckeh@gmail.com> | 2014-05-07 09:19:04 +0000 |
---|---|---|
committer | Steven Barth <steven@midlink.org> | 2014-05-09 15:50:33 +0200 |
commit | 38c29e0bccabca0956498814729b2177b27e48a9 (patch) | |
tree | 389db8bfa57086782ea72ce92e3d0fd6169b7916 | |
parent | 27cecc14302de7ed2c5cbb63e6969dd7e77f893a (diff) |
netifd: Apply interface metric on configured interface gateway parameters
Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
-rw-r--r-- | proto.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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) { |