summaryrefslogtreecommitdiff
path: root/system-linux.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 /system-linux.c
parent680e846cd931223df74cdc12c8b6ce08f233a4f4 (diff)
downloadnetifd-73cb255e78e88637a620108bd34ac917ac6e7c41.tar.gz
make route metrics default to 0
Diffstat (limited to 'system-linux.c')
-rw-r--r--system-linux.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/system-linux.c b/system-linux.c
index 6345b7f..4a8c03d 100644
--- a/system-linux.c
+++ b/system-linux.c
@@ -888,7 +888,7 @@ static int system_rt(struct device *dev, struct device_route *route, int cmd)
if (route->mask)
nla_put(msg, RTA_DST, alen, &route->addr);
- if (route->metric >= 0)
+ if (route->metric > 0)
nla_put_u32(msg, RTA_PRIORITY, route->metric);
if (have_gw)