+ route.link_list = xbt_dynar_new(global_routing->size_of_link, NULL);
+ common_father->get_route_and_latency(common_father, src_father->name, dst_father->name, &route,latency);
+
+ xbt_assert((route.src_gateway != NULL) && (route.dst_gateway != NULL),
+ "bad gateways for route from \"%s\" to \"%s\"", src, dst);
+
+ char*src_gateway = route.src_gateway;
+ char*dst_gateway = route.dst_gateway;
+
+ /* If source gateway is not our source, we have to recursively find our way up to this point */
+ if (strcmp(src, src_gateway))
+ _get_route_and_latency(src, src_gateway, links, latency);
+
+ xbt_dynar_foreach(route.link_list, cpt, link) {
+ xbt_dynar_push(*links, &link);