Menu

#1 Replaced Routes are not removed from system routing table

open
nobody
None
5
2010-02-01
2010-02-01
Anonymous
No

Using LInux Kernel 2.6.27
Using aodv-uu_0.9.6
When a new route replaces an existing route in routing_table.c::rt_table_update(..) The existing route is not removed. The following change resolved this..
Index: routing_table.c
===================================================================
--- routing_table.c (revision 1143)
+++ routing_table.c (revision 1145)
@@ -218,6 +218,9 @@
ip_to_str(rt->next_hop), ip_to_str(next));

#ifndef NS_PORT
+ /* First delete the existing route */
+ nl_send_del_route_msg(rt->dest_addr, rt->next_hop, rt->hcnt);
+ /* Then add in the new route */
nl_send_add_route_msg(rt->dest_addr, next, hops, lifetime,
flags, rt->ifindex);
#endif

Discussion


Log in to post a comment.