X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/a3fac4d6b683940fa2ed70fbb093469c7624bfe2..6aac8bb90869cf0dccc9caf03be425af62ee2813:/src/surf/surf_routing_rulebased.c diff --git a/src/surf/surf_routing_rulebased.c b/src/surf/surf_routing_rulebased.c index a74ae31707..8a57a5d0b7 100644 --- a/src/surf/surf_routing_rulebased.c +++ b/src/surf/surf_routing_rulebased.c @@ -4,8 +4,6 @@ /* This program is free software; you can redistribute it and/or modify it * under the terms of the license (GNU LGPL) which comes with this package. */ #include "surf_routing_private.h" - -#ifdef HAVE_PCRE_LIB #include /* regular expression library */ /* Global vars */ @@ -221,6 +219,11 @@ static route_extended_t rulebased_get_route(routing_component_t rc, static xbt_dynar_t rulebased_get_onelink_routes(routing_component_t rc) { xbt_dynar_t ret = xbt_dynar_new (sizeof(onelink_t), xbt_free); + + //We have already bypass cluster routes with network NS3 + if(!strcmp(surf_network_model->name,"network NS3")) + return ret; + routing_component_rulebased_t routing = (routing_component_rulebased_t)rc; xbt_dict_cursor_t c1 = NULL; @@ -431,5 +434,3 @@ void model_rulebased_unload(void) void model_rulebased_end(void) { } - -#endif /* HAVE_PCRE_LIB */