Commit 9c1dc6ab authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

Rename change_route to switch_routes.

parent aa07a19c
...@@ -166,7 +166,7 @@ uninstall_route(struct route *route) ...@@ -166,7 +166,7 @@ uninstall_route(struct route *route)
must be the same. */ must be the same. */
void void
change_route(struct route *old, struct route *new) switch_routes(struct route *old, struct route *new)
{ {
int rc; int rc;
...@@ -528,7 +528,7 @@ consider_route(struct route *route) ...@@ -528,7 +528,7 @@ consider_route(struct route *route)
return; return;
install: install:
change_route(installed, route); switch_routes(installed, route);
if(installed && route->installed) if(installed && route->installed)
send_triggered_update(route, installed->src, installed->metric); send_triggered_update(route, installed->src, installed->metric);
else else
......
...@@ -46,7 +46,7 @@ void flush_neighbour_routes(struct neighbour *neigh); ...@@ -46,7 +46,7 @@ void flush_neighbour_routes(struct neighbour *neigh);
unsigned int metric_to_kernel(int metric); unsigned int metric_to_kernel(int metric);
void install_route(struct route *route); void install_route(struct route *route);
void uninstall_route(struct route *route); void uninstall_route(struct route *route);
void change_route(struct route *old, struct route *new); void switch_route(struct route *old, struct route *new);
void change_route_metric(struct route *route, int newmetric); void change_route_metric(struct route *route, int newmetric);
int route_feasible(struct route *route); int route_feasible(struct route *route);
int update_feasible(const unsigned char *id, int update_feasible(const unsigned char *id,
......
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