A simple fix for broken MID route handling: we also check the data
authorPeter Tarjan <peter.tarjan@birdtelecom.hu>
Fri, 8 May 2009 07:32:58 +0000 (09:32 +0200)
committerPeter Tarjan <peter.tarjan@birdtelecom.hu>
Fri, 8 May 2009 07:32:58 +0000 (09:32 +0200)
structures for routing, even if a MID entry exists.

src/mid_set.c

index 70a7a2c..f34ab54 100644 (file)
@@ -567,6 +567,8 @@ olsr_input_mid(union olsr_message *m, struct interface *in_if __attribute__ ((un
       OLSR_PRINTF(1, "MID new: (%s, ", olsr_ip_to_string(&buf, &message.mid_origaddr));
       OLSR_PRINTF(1, "%s)\n", olsr_ip_to_string(&buf, &tmp_adr->alias_addr));
       insert_mid_alias(&message.mid_origaddr, &tmp_adr->alias_addr, message.vtime);
+    } else {
+      olsr_insert_routing_table(&tmp_adr->alias_addr, olsr_cnf->maxplen, &message.mid_origaddr, OLSR_RT_ORIGIN_MID);
     }
     tmp_adr = tmp_adr->next;
   }