X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/18ef06c104e1e0608b05eea98d3c7569584710ec..118d3f4ca3b1f74eb632dec688ca5c7dfab7f1ba:/src/kernel/routing/AsImpl.cpp?ds=sidebyside diff --git a/src/kernel/routing/AsImpl.cpp b/src/kernel/routing/AsImpl.cpp index 80d84427e2..4ff5801d07 100644 --- a/src/kernel/routing/AsImpl.cpp +++ b/src/kernel/routing/AsImpl.cpp @@ -7,6 +7,7 @@ #include "simgrid/s4u/host.hpp" #include "src/kernel/routing/AsImpl.hpp" +#include "src/kernel/routing/NetCard.hpp" #include "src/surf/cpu_interface.hpp" #include "src/surf/network_interface.hpp" @@ -40,17 +41,6 @@ namespace simgrid { return res; } - void AsImpl::getOneLinkRoutes(std::vector* accumulator) - { - // recursing only. I have no route myself :) - char* key; - xbt_dict_cursor_t cursor = nullptr; - AsImpl* rc_child; - xbt_dict_foreach (children(), cursor, key, rc_child) { - rc_child->getOneLinkRoutes(accumulator); - } - } - /** @brief Get the common ancestor and its first children in each line leading to src and dst * * In the recursive case, this sets common_ancestor, src_ancestor and dst_ancestor are set as follows. @@ -118,8 +108,8 @@ namespace simgrid { AsImpl* src_as = src->containingAS(); AsImpl* dst_as = dst->containingAS(); - xbt_assert(src_as, "Host %s must be in an AS", src->name().c_str()); - xbt_assert(dst_as, "Host %s must be in an AS", dst->name().c_str()); + xbt_assert(src_as, "Host %s must be in an AS", src->cname()); + xbt_assert(dst_as, "Host %s must be in an AS", dst->cname()); /* (2) find the path to the root routing component */ std::vector path_src; @@ -297,7 +287,7 @@ namespace simgrid { common_ancestor->getLocalRoute(src_ancestor->netcard_, dst_ancestor->netcard_, &route, latency); xbt_assert((route.gw_src != nullptr) && (route.gw_dst != nullptr), "bad gateways for route from \"%s\" to \"%s\"", - src->name().c_str(), dst->name().c_str()); + src->cname(), dst->cname()); /* If source gateway is not our source, we have to recursively find our way up to this point */ if (src != route.gw_src)