summaryrefslogtreecommitdiffstats
path: root/route.c
diff options
context:
space:
mode:
Diffstat (limited to 'route.c')
-rw-r--r--route.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/route.c b/route.c
index 5ca48bc..0b9a78e 100644
--- a/route.c
+++ b/route.c
@@ -936,6 +936,8 @@ delete_route (const struct route *r, const struct tuntap *tt, unsigned int flags
network,
netmask);
#endif /*CONFIG_FEATURE_IPROUTE*/
+ if (r->metric_defined)
+ buf_printf (&buf, " metric %d", r->metric);
msg (D_ROUTE, "%s", BSTR (&buf));
system_check (BSTR (&buf), es, 0, "ERROR: Linux route delete command failed");