X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/f55ebe8f51eaa911242266638068e2c91e958db9..23e3b951a5bc0e18ab5de0edbed5be9d5e334ef7:/src/surf/network.c?ds=inline diff --git a/src/surf/network.c b/src/surf/network.c index a6c158327f..f8c22b0fd3 100644 --- a/src/surf/network.c +++ b/src/surf/network.c @@ -759,7 +759,7 @@ static surf_action_t net_communicate(void *src, XBT_IN("(%s,%s,%g,%g)", ((network_element_t)src)->name, ((network_element_t)dst)->name, size, rate); - routing_get_route_and_latency(src, dst, &route, &latency); + routing_get_route_and_latency((network_element_t)src, (network_element_t)dst, &route, &latency); xbt_assert(!xbt_dynar_is_empty(route) || latency, "You're trying to send data from %s to %s but there is no connection at all between these two hosts.", ((network_element_t)src)->name, ((network_element_t)dst)->name); @@ -771,7 +771,7 @@ static surf_action_t net_communicate(void *src, } } if (sg_network_crosstraffic == 1) { - routing_get_route_and_latency(src, dst, &back_route, NULL); + routing_get_route_and_latency((network_element_t)dst, (network_element_t)src, &back_route, NULL); xbt_dynar_foreach(back_route, i, link) { if (link->lmm_resource.state_current == SURF_RESOURCE_OFF) { failed = 1;