summaryrefslogtreecommitdiffhomepage
path: root/interface-ip.c
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2012-03-09 10:58:07 +0100
committerFelix Fietkau <nbd@openwrt.org>2012-03-09 10:58:07 +0100
commit73cb255e78e88637a620108bd34ac917ac6e7c41 (patch)
treeeefa1c509183c1af5ecdf57a194ab9eefd7bc7e6 /interface-ip.c
parent680e846cd931223df74cdc12c8b6ce08f233a4f4 (diff)
make route metrics default to 0
Diffstat (limited to 'interface-ip.c')
-rw-r--r--interface-ip.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/interface-ip.c b/interface-ip.c
index 612fd5f..51612fa 100644
--- a/interface-ip.c
+++ b/interface-ip.c
@@ -89,8 +89,6 @@ interface_ip_add_route(struct interface *iface, struct blob_attr *attr, bool v6)
if ((cur = tb[ROUTE_METRIC]) != NULL)
route->metric = blobmsg_get_u32(cur);
- else
- route->metric = -1;
if ((cur = tb[ROUTE_MTU]) != NULL)
route->mtu = blobmsg_get_u32(cur);