- xbt_dict_foreach(host_list, cursor_src, src, host1){ // Routes from host
- value1 = sg_host_by_name(src)->pimpl_netcard;
- xbt_dict_foreach(host_list, cursor_dst, dst, host2){ //to host
+ for (unsigned int it_src = 0; it_src < totalHosts; it_src++) { // Routes from host
+ host1 = hosts[it_src];
+ value1 = host1->pimpl_netcard;
+ for (unsigned int it_dst = 0; it_dst < totalHosts; it_dst++) { // Routes to host
+ host2 = hosts[it_dst];