Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Fix MC
[simgrid.git] / src / surf / AsRoutedGraph.cpp
index 5ba0b40..c849af3 100644 (file)
@@ -23,7 +23,7 @@ void routing_route_free(sg_platf_route_cbarg_t route)
 }
 
 namespace simgrid {
-namespace surf {
+namespace routing {
   
 AsRoutedGraph::AsRoutedGraph(const char*name)
   : AsImpl(name)
@@ -83,7 +83,7 @@ xbt_edge_t new_xbt_graph_edge(xbt_graph_t graph, xbt_node_t s, xbt_node_t d, xbt
 }
 
 namespace simgrid {
-namespace surf {
+namespace routing {
 
   xbt_dynar_t AsRoutedGraph::getOneLinkRoutes()
   {
@@ -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);