[Olsr-users] Maybe problem when disabling all olsr network interfaces

Hannes Gredler (spam-protected)
Fri Jun 27 21:11:07 CEST 2008


hi joerg, would you mind trying the attached patch ?
it applies to tip of http://gredler.at/hg/olsrd/

Joerg Pommnitz wrote:
> Hello all,
> please consider the following situation:
> 1) All OLSR network interfaces go down, the follwing code in unix/ifnet.c zeroes the main address:
>       if(ifnet == NULL)
> 	{
> 	  /* No more interfaces */
> 	  memset(&olsr_cnf->main_addr, 0, olsr_cnf->ipsize);
> 	  OLSR_PRINTF(1, "No more interfaces...\n");
> 	}
> 
> 2) in olsr_spf.c (olsr_calculate_routing_table) the following things happen:
> 2.1) olsr_change_myself_tc(); => tc_myself.addr is now zero
> 2.2) olsr_add_tc_edge_entry(tc_myself, &neigh->neighbor_main_addr, 0); adds an edge entry to an empty main address.
> 
> I think this is wrong, but I'm not sure how to fix this. Does anybody have an idea?
> 
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: main-ip-gone.diff
URL: <http://lists.olsr.org/pipermail/olsr-users/attachments/20080627/fcb6f9fd/attachment.ksh>


More information about the Olsr-users mailing list