Commit 01cfad55 authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

Apply input filters in update_route_metric.

parent adc81841
......@@ -337,7 +337,14 @@ update_route_metric(struct route *route)
}
newmetric = INFINITY;
} else {
newmetric = MIN(route->refmetric + neighbour_cost(route->neigh),
struct neighbour *neigh = route->neigh;
int add_metric = input_filter(route->src->id,
route->src->prefix, route->src->plen,
neigh->address,
neigh->network->ifindex);
newmetric = MIN(route->refmetric +
add_metric +
neighbour_cost(route->neigh),
INFINITY);
}
......
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