[Olsr-dev] OLSRv2 configuration and wlan

Ferry Huberts (spam-protected)
Tue Nov 12 18:52:50 CET 2013



On 12/11/13 18:10, Henning Rogge wrote:
> Can you try to apply the following patch to the OONF-API?
>
> diff --git a/src-api/subsystems/os_linux/os_net_linux.c
> b/src-api/subsystems/os_linux/os_net_linux.c
> index 07c3954..92d45ee 100644
> --- a/src-api/subsystems/os_linux/os_net_linux.c
> +++ b/src-api/subsystems/os_linux/os_net_linux.c
> @@ -169,7 +169,7 @@ os_net_update_interface(struct oonf_interface_data
> *ifdata,
>       return -1;
>     }
>
> -  ifdata->up = (ifr.ifr_flags & (IFF_UP | IFF_RUNNING)) ==
> (IFF_UP|IFF_RUNNING);

I recall that we had a few discussion about this before for olsrd v1....
We didn't do anything about it (yet)

> +  ifdata->up = (ifr.ifr_flags & IFF_UP) == IFF_UP;
>     ifdata->loopback = (ifr.ifr_flags & IFF_LOOPBACK) != 0;
>
>     memset(&ifr, 0, sizeof(ifr));
>
>
>
> Henning Rogge
>
> On Tue, Nov 12, 2013 at 6:05 PM, Karoly Szabo <(spam-protected)> wrote:
>> Of course:
>>
>> 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN
>>      link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
>>      inet 127.0.0.1/8 scope host lo
>>      inet6 ::1/128 scope host
>>         valid_lft forever preferred_lft forever
>> 2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP qlen
>> 1000
>>      link/ether 00:18:8b:1b:7e:59 brd ff:ff:ff:ff:ff:ff
>>      inet 147.162.97.20/24 brd 147.162.97.255 scope global eth0
>>      inet6 fe80::218:8bff:fe1b:7e59/64 scope link
>>         valid_lft forever preferred_lft forever
>> 3: eth1: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast state
>> DOWN qlen 1000
>>      link/ether 00:50:da:45:4c:d4 brd ff:ff:ff:ff:ff:ff
>> 4: wlan1: <NO-CARRIER,BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq
>> state DORMANT qlen 1000
>>      link/ether 00:1d:7d:49:2b:e9 brd ff:ff:ff:ff:ff:ff
>>      inet 192.168.1.220/24 brd 192.168.1.255 scope global wlan1
>>      inet6 fe80::21d:7dff:fe49:2be9/64 scope link
>>         valid_lft forever preferred_lft forever
>>
>> iwconfig (same cell on the other node of the network):
>>
>> wlan1     IEEE 802.11bg  ESSID:"MILCOM2013"
>>            Mode:Ad-Hoc  Frequency:2.412 GHz  Cell: 56:1B:37:92:E2:63
>>            Tx-Power=20 dBm
>>            Retry  long limit:7   RTS thr:off   Fragment thr:off
>>            Encryption key:off
>>            Power Management:off
>>
>>
>>
>>
>> 2013/11/12 Henning Rogge <(spam-protected)>
>>>
>>> Can you just post the raw output of "iwconfig wlan1" and "ip addr"?
>>>
>>> Getting no interface address on wlan1 is very strange, you should at
>>> least have an IPv6 linklocal address!
>>>
>>> Henning Rogge
>>>
>>> On Tue, Nov 12, 2013 at 5:56 PM, Karoly Szabo <(spam-protected)>
>>> wrote:
>>>> Hi,
>>>> the ip remains the same:
>>>> eth0: 147.162.97.20
>>>> wlan1:  192.168.1.120
>>>> lo: 127.0.0.1
>>>>
>>>> also the result for
>>>> nhdp iflink:
>>>>
>>>> Interface 'eth0': hello_interval=2   hello_vtime=20
>>>>      Address: 147.162.97.20
>>>>      Address: fe80::218:8bff:fe1b:7e59
>>>>      Link: status=symmetric localif=eth0 vtime=38.756   heard=18.756
>>>> symmetric=18.656   dualstack
>>>>          Originator: 147.162.97.9
>>>>          Link addresses: 147.162.97.9
>>>>      Link: status=symmetric localif=eth0 vtime=38.756   heard=18.756
>>>> symmetric=18.656   dualstack
>>>>          Link addresses: fe80::f24d:a2ff:fe37:cbd8
>>>>
>>>> Interface 'lo': hello_interval=2   hello_vtime=20
>>>> Interface 'wlan1': hello_interval=2   hello_vtime=20
>>>>
>>>> Similar results came from the machine with ip: 147.162.97.9
>>>>
>>>> It seems that the Wifi interfaces does not initialize themselves in
>>>> Olsr.
>>>>
>>>> Regards,
>>>> Karoly
>>>>
>>>>
>>>>
>>>> 2013/11/6 Henning Rogge <(spam-protected)>
>>>>>
>>>>> Hi,
>>>>>
>>>>> what IP addresses have you set on eth0, wlan1 and lo before (and
>>>>> after) you run olsrd2 ?
>>>>>
>>>>> maybe you can run "ip addr" twice, once before you start the routing
>>>>> daemon and once 30 seconds afterwards.
>>>>>
>>>>> Henning Rogge
>>>>>
>>>>> On Wed, Nov 6, 2013 at 7:56 PM, Karoly Szabo <(spam-protected)>
>>>>> wrote:
>>>>>> Hi all, I swapped from version 1 to version 2.
>>>>>> I found some information about the configuration file and i wandered
>>>>>> if
>>>>>> exist a complete
>>>>>> list of all the parameters that is possible to set.
>>>>>>
>>>>>> Also I have a problem regarding to Wifi devices, after launching:
>>>>>> olsrd wlan1 eth0 lo
>>>>>>
>>>>>> In telnet I tried to obtain information about all the interfaces
>>>>>> and I'm missing all wlan informations except default hello interval
>>>>>> and
>>>>>> vtime (currently connected and pingning a tablet).
>>>>>>> nhdp interface
>>>>>> Interface 'eth0': hello_interval=2   hello_vtime=20
>>>>>>      Address: 147.162.97.20
>>>>>>      Address: fe80::218:8bff:fe1b:7e59
>>>>>> Interface 'lo': hello_interval=2   hello_vtime=20
>>>>>> Interface 'wlan1': hello_interval=2   hello_vtime=20
>>>>>>
>>>>>>> Connection closed by foreign host.
>>>>>>
>>>>>> the routes command also show me all the eth0 nodes but no one from
>>>>>> wlan1.
>>>>>> Somebody had similar problems? Or am I missing something?
>>>>>>
>>>>>> Thanks in advance,
>>>>>> Karoly Szabo
>>>>>>
>>>>>> --
>>>>>> Olsr-dev mailing list
>>>>>> (spam-protected)
>>>>>> https://lists.olsr.org/mailman/listinfo/olsr-dev
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> 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
>>>>
>>>>
>>>
>>>
>>>
>>> --
>>> 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
>>
>>
>
>
>

-- 
Ferry Huberts




More information about the Olsr-dev mailing list