[olsr-dev] bug in mdi code
Acinonyx
(spam-protected)
Fri Nov 10 23:16:54 CET 2006
Ok, here is a patch i made. It adds neighbor main address update on
every link entry update.
I tested it and it works.
Bill
-------------------
diff -Naur olsrd-0.4.10/src/link_set.c olsrd-0.4.10-patched/src/link_set.c
--- olsrd-0.4.10/src/link_set.c 2005-11-17 06:25:44.000000000 +0200
+++ olsrd-0.4.10-patched/src/link_set.c 2006-11-10 23:45:24.000000000 +0200
@@ -403,7 +466,10 @@
{
if(COMP_IP(remote, &tmp_link_set->neighbor_iface_addr) &&
COMP_IP(local, &tmp_link_set->local_iface_addr))
- return tmp_link_set;
+ {
+ COPY_IP(&tmp_link_set->neighbor->neighbor_main_addr,
remote_main);
+ return tmp_link_set;
+ }
tmp_link_set = tmp_link_set->next;
}
More information about the Olsr-dev
mailing list