[Olsr-users] [SUGGESTION] Interface no up and/or running

Matteo (spam-protected)
Mon Jun 10 18:22:08 CEST 2013


Hi all,
until today I used olsrd-0.6.0 for WiFi multi-hop, but today I compiled the last stable version 0.6.5 .
I noticed an error when I ran olsrd:  Interface no up and running. 
So, I read the ifnet.c and I figured out a few change between this last version and 0.6.0 .

The problems were in chi_if_up and chi_if_changed function , when it checks if the wifi is up and running.  
Then, for WiFi connection I suggest to modify if(((ifs.int_flags & IFF_U) == 0) || ((ifs.int_flags & IFF_RUNNING)==0)) => if((ifs.int_flags & IFF_U) == 0) in both the above functions.

This check  if(((ifs.int_flags & IFF_U) == 0) || ((ifs.int_flags & IFF_RUNNING)==0)) works with ethernet because you can set ifs.int_flags with IFF_RUNNING

Best,
Matteo





More information about the Olsr-users mailing list