Multi Path Routing Complete
diff --git a/nlsr_route.c b/nlsr_route.c
index fcdea08..17bfafc 100644
--- a/nlsr_route.c
+++ b/nlsr_route.c
@@ -74,14 +74,14 @@
int num_link=get_no_link_from_adj_matrix(adj_matrix, map_element ,source);
- if ( num_link == 0 )
+ if ( (num_link == 0) || (nlsr->multi_path_face_num == 0 ) )
{
calculate_path(adj_matrix,parent,dist, map_element, source);
print_all_path_from_source(parent,source);
print_all_next_hop(parent,source);
update_routing_table_with_new_route(parent, dist,source);
}
- else
+ else if ( (num_link != 0) && (nlsr->multi_path_face_num != 0 ) )
{
long int *links=(long int *)malloc(num_link*sizeof(long int));
long int *link_costs=(long int *)malloc(num_link*sizeof(long int));
@@ -1003,7 +1003,7 @@
}
void
-clear_old_routing_table()
+clear_old_routing_table(void)
{
printf("clear_old_routing_table called\n");
int i,rt_element;
@@ -1031,7 +1031,7 @@
void
-do_old_routing_table_updates()
+do_old_routing_table_updates(void)
{
printf("do_old_routing_table_updates called\n");
int i, rt_element;