Commit 1c9c4448 authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

Don't change_route_metric if metrics are equal.

parent 47bffaba
......@@ -194,6 +194,9 @@ change_route_metric(struct route *route, int newmetric)
{
int rc;
if(route->metric == newmetric)
return;
if(route->installed) {
rc = kernel_route(ROUTE_MODIFY,
route->src->prefix, route->src->plen,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment