Commit 2bc566f2 authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

Send updates when the set of exported routes changes.

parent 1fecee3b
...@@ -29,6 +29,7 @@ THE SOFTWARE. ...@@ -29,6 +29,7 @@ THE SOFTWARE.
#include "babel.h" #include "babel.h"
#include "kernel.h" #include "kernel.h"
#include "neighbour.h" #include "neighbour.h"
#include "message.h"
#include "route.h" #include "route.h"
#include "xroute.h" #include "xroute.h"
#include "util.h" #include "util.h"
...@@ -95,8 +96,9 @@ check_xroutes() ...@@ -95,8 +96,9 @@ check_xroutes()
struct route *route; struct route *route;
route = find_best_route(xroutes[i].prefix, xroutes[i].plen); route = find_best_route(xroutes[i].prefix, xroutes[i].plen);
if(route) if(route)
consider_route(route); install_route(route);
} }
send_update(NULL, 1, xroutes[i].prefix, xroutes[i].plen);
change = 1; change = 1;
} }
} }
......
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