Discussion:
[SUGGESTION] Interface no up and/or running
Matteo
2013-06-10 16:22:08 UTC
Permalink
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
--
Olsr-users mailing list
Olsr-***@lists.olsr.org
https://lists.olsr.org/mailman/listinfo/olsr-users
Henning Rogge
2013-06-10 18:33:55 UTC
Permalink
Do you want to say that Olsrd-0.6.5 does not work with Ethernet interfaces?

Thats definitely not true.

Henning Rogge
Post by Matteo
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
--
Olsr-users mailing list
https://lists.olsr.org/mailman/listinfo/olsr-users
--
We began as wanderers, and we are wanderers still. We have lingered
long enough on the shores of the cosmic ocean. We are ready at last to
set sail for the stars - Carl Sagan
--
Olsr-users mailing list
Olsr-***@lists.olsr.org
https://lists.olsr.org/mailman/listinfo/olsr-users
Matteo Danieletto
2013-06-10 19:37:06 UTC
Permalink
No, I want say it works with ethernet, instead this if(((ifs.int_flags & IFF_U) == 0) || ((ifs.int_flags & IFF_RUNNING)==0))
is always true with WiFi interface.

I tried several WiFi drivers and Kernel and always there was Interface error.

Matteo
Post by Henning Rogge
Do you want to say that Olsrd-0.6.5 does not work with Ethernet interfaces?
Thats definitely not true.
Henning Rogge
Post by Matteo
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
--
Olsr-users mailing list
https://lists.olsr.org/mailman/listinfo/olsr-users
--
We began as wanderers, and we are wanderers still. We have lingered
long enough on the shores of the cosmic ocean. We are ready at last to
set sail for the stars - Carl Sagan
--
Olsr-users mailing list
Olsr-***@lists.olsr.org
https://lists.olsr.org/mailman/listinfo/olsr-users
Henning Rogge
2013-06-11 05:37:43 UTC
Permalink
Post by Matteo Danieletto
No, I want say it works with ethernet, instead this if(((ifs.int_flags & IFF_U) == 0) || ((ifs.int_flags & IFF_RUNNING)==0))
is always true with WiFi interface.
I tried several WiFi drivers and Kernel and always there was Interface error.
I would guess there are thousands of people running olsrd on wifi
interfaces without any interface error.

Do NOT push this change, there must be something different going wrong.

Henning Rogge
--
Diplom-Informatiker Henning Rogge , Fraunhofer-Institut für
Kommunikation, Informationsverarbeitung und Ergonomie FKIE
Kommunikationssysteme (KOM)
Fraunhofer Straße 20, 53343 Wachtberg, Germany
Telefon +49 228 9435-961, Fax +49 228 9435 685
mailto:***@fkie.fraunhofer.de http://www.fkie.fraunhofer.de
Loading...