Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Fix ns3 tesh.
authornavarro <navarro@caraja.(none)>
Mon, 12 Mar 2012 09:31:38 +0000 (10:31 +0100)
committernavarro <navarro@caraja.(none)>
Mon, 12 Mar 2012 11:19:40 +0000 (12:19 +0100)
examples/msg/ns3/Two_clusters.xml
src/surf/network_ns3.c

index 0aa41ea..efc5e10 100644 (file)
         gw_dst="c-my_cluster_2_router.me">
                <link_ctn id="backbone"/>
      </ASroute>   
-     <ASroute src="my_cluster_2" dst="my_cluster_1" 
-        gw_src="c-my_cluster_2_router.me" 
-        gw_dst="c-my_cluster_1_router.me">
-               <link_ctn id="backbone"/>
-     </ASroute> 
 </AS>
 </platform>
index 8a114b8..cf02267 100644 (file)
@@ -90,7 +90,7 @@ static void parse_ns3_add_link(sg_platf_link_cbarg_t link)
     XBT_INFO("The NS3 network model doesn't support link state traces");
 
   ns3_link_t link_ns3 = xbt_new0(s_ns3_link_t,1);;
-  link_ns3->id = (char*)(link->id);
+  link_ns3->id = xbt_strdup((char*)(link->id));
   link_ns3->bdw = bprintf("%f",link->bandwidth);
   link_ns3->lat = bprintf("%f",link->latency);