From: Felix Fietkau Date: Fri, 9 Mar 2012 09:57:13 +0000 (+0100) Subject: system-dummy: add route metric information X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fnetifd.git;a=commitdiff_plain;h=680e846cd931223df74cdc12c8b6ce08f233a4f4 system-dummy: add route metric information --- diff --git a/system-dummy.c b/system-dummy.c index f2e3aed..71dad0e 100644 --- a/system-dummy.c +++ b/system-dummy.c @@ -159,6 +159,9 @@ int system_add_route(struct device *dev, struct device_route *route) if (route->flags & DEVADDR_DEVICE) sprintf(devstr, " dev %s", dev->ifname); + if (route->metric > 0) + sprintf(devstr, " metric %d", route->metric); + D(SYSTEM, "route add %s%s%s\n", addr, gw, devstr); return 0; }