[Babel-users] not routing
Juliusz Chroboczek
Juliusz.Chroboczek at pps.jussieu.fr
Sat Nov 7 16:48:57 UTC 2009
> I tested this hack below just now and it does not work. The route
> still is only there when no other default route exists.
Try this
diff -rN -u old-babeld/route.c new-babeld/route.c
--- old-babeld/route.c 2009-11-07 17:48:13.824763796 +0100
+++ new-babeld/route.c 2009-11-07 17:48:13.840761303 +0100
@@ -519,8 +519,12 @@
if(!route_feasible(route))
return;
+#ifdef HORRIBLE_HACK_FOR_MICHAEL
+#warning Using horrible hack for Michael.
+#else
if(find_xroute(route->src->prefix, route->src->plen))
return;
+#endif
installed = find_installed_route(route->src->prefix,
route->src->plen);
diff -rN -u old-babeld/route.h new-babeld/route.h
--- old-babeld/route.h 2009-11-07 17:48:13.824763796 +0100
+++ new-babeld/route.h 2009-11-07 17:48:13.840761303 +0100
@@ -20,6 +20,8 @@
THE SOFTWARE.
*/
+#define HORRIBLE_HACK_FOR_MICHAEL
+
struct route {
struct source *src;
unsigned short metric;
diff -rN -u old-babeld/xroute.c new-babeld/xroute.c
--- old-babeld/xroute.c 2009-11-07 17:48:13.832763562 +0100
+++ new-babeld/xroute.c 2009-11-07 17:48:13.844763176 +0100
@@ -208,8 +208,12 @@
if(rc) {
struct route *route;
route = find_installed_route(routes[i].prefix,
routes[i].plen);
+#ifdef HORRIBLE_HACK_FOR_MICHAEL
+#warning Using horrible hack for Michael.
+#else
if(route)
uninstall_route(route);
+#endif
change = 1;
if(send_updates)
send_update(NULL, 0, routes[i].prefix,
routes[i].plen);
More information about the Babel-users
mailing list