+ }
+}
+
+static void add_route()
+{
+ xbt_ex_t e;
+ int nb_link = 0;
+ int cpt = 0;
+ int link_list_capacity = 0;
+ link_KCCFLN05_t *link_list = NULL;
+
+ if (routing_table == NULL) create_routing_table();
+
+ link_list_capacity = xbt_dynar_length(links);
+ link_list = xbt_new(link_KCCFLN05_t, link_list_capacity);
+
+ src_id = atoi(xbt_dynar_get_as(keys, 0, char*));
+ dst_id = atoi(xbt_dynar_get_as(keys, 1, char*));
+ impact_on_src = atof(xbt_dynar_get_as(keys, 2, char*));
+ impact_on_dst = atof(xbt_dynar_get_as(keys, 3, char*));
+ impact_on_src_with_other_recv = atof(xbt_dynar_get_as(keys, 4, char*));
+ impact_on_dst_with_other_send = atof(xbt_dynar_get_as(keys, 5, char*));
+
+ char* link = NULL;
+ xbt_dynar_foreach (links, cpt, link) {
+ TRY {
+ link_list[nb_link++] = xbt_dict_get(link_set, link);
+ }
+ CATCH(e) {
+ RETHROW1("Link %s not found (dict raised this exception: %s)", link);
+ }
+ }
+ route_new(src_id, dst_id, link_list, nb_link,impact_on_src,
+ impact_on_dst, impact_on_src_with_other_recv,
+ impact_on_dst_with_other_send);