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

Joerg Pommnitz (spam-protected)
Fri Jun 27 17:34:11 CEST 2008


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?

-- 
Regards
       Joerg


      __________________________________________________________
Gesendet von Yahoo! Mail.
Dem pfiffigeren Posteingang.
http://de.overview.mail.yahoo.com




More information about the Olsr-users mailing list