X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/7c047878cb2905079a6a0544f1a15134ae3ab3a6..a5c5765ba9e8336b55101d248a8f43fbf9cd0c0c:/src/surf/AsRoutedGraph.cpp diff --git a/src/surf/AsRoutedGraph.cpp b/src/surf/AsRoutedGraph.cpp index 5ba0b40433..ee1f3c5c55 100644 --- a/src/surf/AsRoutedGraph.cpp +++ b/src/surf/AsRoutedGraph.cpp @@ -221,10 +221,10 @@ void AsRoutedGraph::getRouteCheckParams(NetCard *src, NetCard *dst) src->name(), dst->name(), src_as->name(), dst_as->name(), name()); } void AsRoutedGraph::addRouteCheckParams(sg_platf_route_cbarg_t route) { - const char *srcName = route->src; - const char *dstName = route->dst; - NetCard *src = sg_netcard_by_name_or_null(srcName); - NetCard *dst = sg_netcard_by_name_or_null(dstName); + NetCard *src = route->src; + NetCard *dst = route->dst; + const char *srcName = src->name(); + const char *dstName = dst->name(); if(!route->gw_dst && !route->gw_src) { XBT_DEBUG("Load Route from \"%s\" to \"%s\"", srcName, dstName);