Re: Two different classes of the same technology? Seeking for any solution

2014-05-21 Thread Patrik Flykt
Hi, On Tue, 2014-05-20 at 13:36 +0200, Jakub Ladman wrote: > Is there a way to tell connman to use the gsm modem if and only if the > wired network is unreachable? > > At this time connman selects the one, which is first initialized after > boot (i thing) Set 'PreferredTechnologies = et

Re: [PATCH] wifi: cancel autoscan timeout when removing device

2014-05-21 Thread Patrik Flykt
On Tue, 2014-05-20 at 11:21 +0300, Hannu Mallat wrote: > Usually autoscan is cancelled when the device is disabled, but when > wpa_supplicant leaves D-Bus while device has an ongoing power request, > __connman_device_disable() will return early and thus autoscan timeout > isn't cleared. The timeout

Re: openvpn: client ip doesn't change

2014-05-21 Thread Patrik Flykt
On Wed, 2014-05-21 at 00:29 +0300, Yevhen Kyriukha wrote: > It is a config for openvpn (/etc/openvpn). Openvpn is configured on > ubuntu *without* connman. You can create simple server config and put > "ifconfig-pool-persist ipp.txt" option to it. It will be enough for > testing. This file is not

Re: Connman crashes when loosing network

2014-05-21 Thread Tomasz Bursztyka
Hi Marcel, Your patch works but that basically skips all multi line headers, so I think you have some coding to do;-) If you want to support multi line headers of course. Sure, the patch was just to verify the crash origin. There is indeed a bit of work to get it right now. Thanks for repo

Please avoid ICMP Redirect when running VPN

2014-05-21 Thread Chengyi Zhao
Hi, At first ,Please read the following information: http://en.wikipedia.org/wiki/Internet_Control_Message_Protocol#Redirect If the VPN gateway is in the same subnet with the VPN client device(local device), please don't add the host route to the routing table of the client device(local device).

Re: openvpn: client ip doesn't change

2014-05-21 Thread Jukka Rissanen
On ke, 2014-05-21 at 10:16 +0300, Patrik Flykt wrote: > On Wed, 2014-05-21 at 00:29 +0300, Yevhen Kyriukha wrote: > > It is a config for openvpn (/etc/openvpn). Openvpn is configured on > > ubuntu *without* connman. You can create simple server config and put > > "ifconfig-pool-persist ipp.txt" opt

Re: openvpn: client ip doesn't change

2014-05-21 Thread Yevhen Kyriukha
2014-05-21 15:43 GMT+03:00 Jukka Rissanen : > > On ke, 2014-05-21 at 10:16 +0300, Patrik Flykt wrote: > > On Wed, 2014-05-21 at 00:29 +0300, Yevhen Kyriukha wrote: > > > It is a config for openvpn (/etc/openvpn). Openvpn is configured on > > > ubuntu *without* connman. You can create simple server

Re: Two different classes of the same technology? Seeking for any solution

2014-05-21 Thread Jakub Ladman
Hi > Set 'PreferredTechnologies = ethernet' in /etc/connman/main.conf to > prioritize ethernet over every other type of connection. Yes this is what i allready know. But ... problem is, that the both interfaces appearing as cable ethernet. Connman has no way to distinguish between the two. I a

[PATCH] service: helper function for sorting services

2014-05-21 Thread Hannu Mallat
Created a helper function to sort service list, to shorten the code slightly and to ensure null pointer check is always done before using the list pointer. --- src/service.c | 41 ++--- 1 file changed, 14 insertions(+), 27 deletions(-) diff --git a/src/service.