[Olsr-dev] inconsistency in MID handling

Hannes Gredler (spam-protected)
Thu May 7 13:43:39 CEST 2009


i think the patch is fine for 0.5.6 where we did not yet have the MID refactoring.
(please commit and push (do not forget to set your name in the .hgrc file
see http://www.olsr.org/?q=mercurial for details)

/hannes

On Thu, May 07, 2009 at 12:50:36PM +0200, Peter Tarjan wrote:
| Hi,
| 
| > @peter are you using tip-tip or stable branch?
| 
| I am working with the stable branch.
| 
| I think I managed to fix the problem, but I am not convinced that this
| is the way it should be handled. It's just an idea, please think about
| it.
| 
| --- a/src/mid_set.c ? ? 2009-03-26 16:59:05.000000000 +0100
| +++ b/src/mid_set.c ? ? 2009-05-07 11:34:57.200697890 +0200
| @@ -567,6 +567,8 @@
| ? ? ? 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;
| ? }
| 
| 
| --
| Peter
| 
| -- 
| Olsr-dev mailing list
| (spam-protected)
| http://lists.olsr.org/mailman/listinfo/olsr-dev
| 




More information about the Olsr-dev mailing list