X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/e860b114232c4593c6e99e2c35ee4b9b7d7ef629..455435b8a7cc8d84037aa66104a73d4760d9666f:/src/s4u/s4u_as.cpp diff --git a/src/s4u/s4u_as.cpp b/src/s4u/s4u_as.cpp index 4700b238f5..1a8587b16d 100644 --- a/src/s4u/s4u_as.cpp +++ b/src/s4u/s4u_as.cpp @@ -9,14 +9,21 @@ #include #include -#include "src/surf/surf_routing.hpp" +#include "src/kernel/routing/BypassRoute.hpp" +#include "src/kernel/routing/NetCard.hpp" #include "src/surf/network_interface.hpp" // Link FIXME: move to proper header +#include "src/surf/surf_routing.hpp" XBT_LOG_NEW_DEFAULT_CATEGORY(s4u_as,"S4U autonomous systems"); namespace simgrid { namespace s4u { + simgrid::xbt::signal* link_list)> + As::onRouteCreation; + As::As(As* father, const char* name) : father_(father), name_(xbt_strdup(name)) { } @@ -95,7 +102,7 @@ namespace simgrid { } /* Build a copy that will be stored in the dict */ - kernel::routing::AsRoute* newRoute = new kernel::routing::AsRoute(e_route->gw_src, e_route->gw_dst); + kernel::routing::BypassRoute* newRoute = new kernel::routing::BypassRoute(e_route->gw_src, e_route->gw_dst); for (auto link : *e_route->link_list) newRoute->links.push_back(link);