[PATCH v2 1/2] main: Introduce conf file option to disable hostname updates

2012-08-10 Thread Jukka Rissanen
The AllowHostnameUpdates in system config file can be used to ignore the hostname update request that for example can be received via DHCP hostname option. --- src/main.c| 13 + src/main.conf |5 + 2 files changed, 18 insertions(+) diff --git a/src/main.c b/src/main.c in

[PATCH v2 0/2] Ignore received DHCP hostname option

2012-08-10 Thread Jukka Rissanen
Hi, The v2 changes the option name to AllowHostnameUpdates. Default value is true meaning that the existing functionality is preserved. This patchset disables the setting of system hostname according to received DHCP hostname option if system config file option is set. This one fixes https://bugs

[PATCH v2 2/2] dhcp: Apply received hostname option according to conf file setting

2012-08-10 Thread Jukka Rissanen
We do not use the received DHCP hostname option (12) if system config file setting says so. Fixes BMC#25597 --- src/dhcp.c | 10 +++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/dhcp.c b/src/dhcp.c index 3425b6d..9d1a95e 100644 --- a/src/dhcp.c +++ b/src/dhcp.c @@ -2

[PATCH v0 1/7] service: Allow plugins access to connman_service_create_ip4/6config

2012-08-10 Thread Daniel Wagner
From: Daniel Wagner --- include/service.h | 5 + src/connman.h | 5 + src/network.c | 2 +- src/provider.c| 4 ++-- src/service.c | 4 ++-- 5 files changed, 11 insertions(+), 9 deletions(-) diff --git a/include/service.h b/include/service.h index 460fdd4..717098c 100644

[PATCH v0 0/7] Support IPv6 for cellular technologies

2012-08-10 Thread Daniel Wagner
From: Daniel Wagner Hi, These patches are based on Elena's patches from 21.06.2012. I could only test IPv4 but the rest looks easy enough. cheers, daniel Daniel Wagner (5): service: Allow plugins access to connman_service_create_ip4/6config service: Allow plugins to lookup services by ne

[PATCH v0 2/7] service: Allow plugins to lookup services by networks

2012-08-10 Thread Daniel Wagner
From: Daniel Wagner --- include/service.h | 3 +++ src/connman.h | 1 - src/device.c | 2 +- src/dhcp.c| 8 src/dhcpv6.c | 8 src/network.c | 50 +- src/service.c | 8 7 files changed,

[PATCH v0 3/7] network: Only set index in connman_network_set_index()

2012-08-10 Thread Daniel Wagner
From: Daniel Wagner No side effects inside this setter. --- src/network.c | 27 +-- 1 file changed, 5 insertions(+), 22 deletions(-) diff --git a/src/network.c b/src/network.c index e72e35f..20e3ebc 100644 --- a/src/network.c +++ b/src/network.c @@ -469,31 +469,14 @@ voi

[PATCH v0 4/7] ofono: Create ipconfig before setting index

2012-08-10 Thread Daniel Wagner
From: Daniel Wagner Since connman_network_set_index() does not create magically the ipconfig for us anymore, we need to create it inside set_connected(). --- plugins/ofono.c | 67 ++--- 1 file changed, 26 insertions(+), 41 deletions(-) diff --

[PATCH v0 5/7] ipconfig: Allow NULL gateway for IPv6

2012-08-10 Thread Daniel Wagner
From: Elena Tebesoi This patch makes possible configuring a GPRS connection with IPV6 settings and without gateway. --- src/ipconfig.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/ipconfig.c b/src/ipconfig.c index 36067db..f704443 100644 --- a/src/ipconfig.c +++ b/src/ipconfig.c @@

[PATCH v0 6/7] network: Enable IPv6 on network interface

2012-08-10 Thread Daniel Wagner
From: Elena Tebesoi This patch enables IPv6 usage for network interfaces with static/manual configuration. --- src/network.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/network.c b/src/network.c index 20e3ebc..31b0f97 100644 --- a/src/network.c +++ b/src/network.c @@ -938,6 +938,8

[PATCH v0 7/7] ofono: Set IPv6 nameservers

2012-08-10 Thread Daniel Wagner
From: Daniel Wagner --- plugins/ofono.c | 19 +-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/plugins/ofono.c b/plugins/ofono.c index 87bb956..cbdf9b4 100644 --- a/plugins/ofono.c +++ b/plugins/ofono.c @@ -259,6 +259,7 @@ static void set_connected(struct modem_

[PATCH 0/2] Wait VPN connection establishment before replying the user

2012-08-10 Thread Jukka Rissanen
Hi, I just noticed that VPN connection that is initiated using Manager.ConnectProvider method returns immediately and does not wait the connection to be established. This patch changes that so after this patch all user initiated connections like normal service, hidden service, existing VPN and new

[PATCH 1/2] service: Allow setting path when sending pending dbus reply

2012-08-10 Thread Jukka Rissanen
--- src/connman.h |3 ++- src/network.c |2 +- src/service.c | 11 +++ 3 files changed, 10 insertions(+), 6 deletions(-) diff --git a/src/connman.h b/src/connman.h index e72bc2a..ddf2491 100644 --- a/src/connman.h +++ b/src/connman.h @@ -629,7 +629,8 @@ void __connman_service_se

[PATCH 2/2] provider: Return reply to user after connection is established

2012-08-10 Thread Jukka Rissanen
We only return a reply to user that is trying to connect to VPN, after the connection is established. Now all the user initiated service or provider connect requests work the same way. --- src/connman.h |2 ++ src/provider.c | 17 + src/service.c | 21

[PATCH] dundee Create ipconfig before setting index

2012-08-10 Thread Daniel Wagner
From: Daniel Wagner Since connman_network_set_index() does not create magically the ipconfig for us anymore, we need to create it inside set_connected(). --- plugins/dundee.c | 8 1 file changed, 8 insertions(+) diff --git a/plugins/dundee.c b/plugins/dundee.c index 0dae0c9..b0c7b9f 10

Re: making ConnMan do DNS instead of writing /etc/resolv.conf

2012-08-10 Thread Patrik Flykt
Hi, On Thu, 2012-08-09 at 12:07 +0200, Erik Bernoth wrote: > It wasn't possible to > find any meaningful documentation about connman, There is a ./doc directory in the source code which explains the D-Bus api. For services see ./doc/service-api.txt > root@target:/usr/lib/connman/test/$

[RFC] ofono: Retry on modem powered error

2012-08-10 Thread Daniel Wagner
From: Daniel Wagner In case set Powered TRUE fails we just retry a few times. --- Hi, My modem was not always powered up. So I tried added this retry logic and suddenly I don't get the failure case anymore. Maybe a heisenbug. Anyway, we have some more of those set property calls in the oFono p

Re: BeagleBone tethering support (in lieu of adhoc support)

2012-08-10 Thread Patrik Flykt
Hi, On Thu, 2012-08-09 at 22:30 -0400, Jerrill Johnson wrote: > reference: https://wiki.archlinux.org/index.php/Connman > However, passphrase doesn't seem to be supported by the version 1.4 > script. The information referring to the passphrase is old at least. > I'm trying to incorporat

Re: [PATCH] service: export connman_service_lookup_from_network function

2012-08-10 Thread Patrik Flykt
Hi, On Tue, 2012-08-07 at 18:12 +0200, Julien Massot wrote: > This patch is required for the patch set : > "Reduce the MAXIMUM_RETRIES to 2 for non favorite service." > > --- > include/service.h | 2 ++ > src/connman.h | 1 - > src/device.c | 2 +- > src/dhcp.c| 8 +

Re: [PATCH] service: export connman_service_lookup_from_network function

2012-08-10 Thread Daniel Wagner
Hi Patrik, On 10.08.2012 15:31, Patrik Flykt wrote: Hi, On Tue, 2012-08-07 at 18:12 +0200, Julien Massot wrote: This patch is required for the patch set : "Reduce the MAXIMUM_RETRIES to 2 for non favorite service." I realize I send the same patch for this a few hours ago :) cheeers

Re: [PATCH] service: export connman_service_lookup_from_network function

2012-08-10 Thread Julien Massot
Hi Patrick, Daniel, >> Hi, >> >> On Tue, 2012-08-07 at 18:12 +0200, Julien Massot wrote: >>> >>> This patch is required for the patch set : >>> "Reduce the MAXIMUM_RETRIES to 2 for non favorite service." > > > I realize I send the same patch for this a few hours ago :) I think we can skip

Re: [PATCH -v2 2/2] dundee: clean up device in case of setup failure

2012-08-10 Thread Patrik Flykt
On Thu, 2012-08-09 at 18:57 -0300, Gustavo Padovan wrote: > From: Gustavo Padovan Both patches applied, many thanks! Patrik ___ connman mailing list connman@connman.net http://lists.connman.net/listinfo/connman

Re: [PATCH v2 0/2] Ignore received DHCP hostname option

2012-08-10 Thread Patrik Flykt
On Fri, 2012-08-10 at 11:21 +0300, Jukka Rissanen wrote: > Hi, > > The v2 changes the option name to AllowHostnameUpdates. Default > value is true meaning that the existing functionality is preserved. > > This patchset disables the setting of system hostname according > to received DHCP hostname

Re: [PATCH] service: export connman_service_lookup_from_network function

2012-08-10 Thread Patrik Flykt
On Fri, 2012-08-10 at 15:58 +0200, Julien Massot wrote: > I think we can skip this patch to apply the one posted by Daniel. > ( [PATCH v0 2/7] service: Allow plugins to lookup services by > networks.) Ok, let's do that. Cheers, Patrik ___ co

[PATCH] ofono: Retry to set property on errors

2012-08-10 Thread Daniel Wagner
From: Daniel Wagner This is a workaround for modems which behave stupidly. So if oFono reports back an error when we try to set a property, e.g. Powered on the modem or Active on the context, then we just retry a few times before we stop giving up. --- plugins/ofono.c | 149

Re: [RFC] ofono: Retry on modem powered error

2012-08-10 Thread Marcel Holtmann
Hi Daniel, > My modem was not always powered up. So I tried added this retry logic > and suddenly I don't get the failure case anymore. Maybe a heisenbug. > > Anyway, we have some more of those set property calls in the oFono > plugin. Do we want to add this kind of retry logic everywhere? > Sou