Commit d714dca1 authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

Implement retract_route.

parent dc61c198
...@@ -262,6 +262,13 @@ change_route_metric(struct route *route, unsigned newmetric) ...@@ -262,6 +262,13 @@ change_route_metric(struct route *route, unsigned newmetric)
local_notify_route(route, LOCAL_CHANGE); local_notify_route(route, LOCAL_CHANGE);
} }
static void
retract_route(struct route *route)
{
route->refmetric = INFINITY;
change_route_metric(route, INFINITY);
}
int int
route_feasible(struct route *route) route_feasible(struct route *route)
{ {
......
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