Commit 24fd8d0b authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

Advertise smaller metrics for non-interfering routes.

parent ceef4838
......@@ -895,6 +895,13 @@ flushupdates(struct network *net)
if((net->flags & NET_SPLIT_HORIZON) &&
route->neigh->network == net)
continue;
if(!route_interferes(route, net)) {
/* Announce a smaller metric. */
metric =
route->refmetric +
(diversity_factor * route->cost / + 128) / 256 +
route->add_metric;
}
really_send_update(net, route->src->id,
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