[PATCH v3 02/10] session: Mark session active or inactive

2014-02-04 Thread Daniel Wagner
From: Daniel Wagner Free-ride mode is implicit always enabled (see documentation) we only need to track when a user requests a connection. This can be expressed by a boolean. Remove the reason enum and rename the connect and disconnect functions. Instead storing the user's connect request, we ju

[PATCH v3 06/10] session: Add functions to de/assign service to a session

2014-02-04 Thread Daniel Wagner
From: Daniel Wagner Service will now be able to add or remove a service from a session. --- src/connman.h | 5 src/session.c | 84 ++- 2 files changed, 77 insertions(+), 12 deletions(-) diff --git a/src/connman.h b/src/connman.h inde

[PATCH v3 10/10] service: Enter session mode when config files are found

2014-02-04 Thread Daniel Wagner
From: Daniel Wagner This is just a hack to explain what I mean. Instead introducing a new main.conf flag we allow a policy plugin to enable session mode permemanantly. I don't we have to add this feature to session_policy_local.c. I have for my stuff my own plugin (called session_policy_pold.c an

[PATCH v3 08/10] service: Disconnect service on last session deactivation

2014-02-04 Thread Daniel Wagner
From: Daniel Wagner Since we know if a service was connected by a user or by a session we can use this information and disconnect the service if there is no user asking for it. --- src/service.c | 29 + 1 file changed, 29 insertions(+) diff --git a/src/service.c b/sr

[PATCH v3 09/10] service: Add session auto connect support

2014-02-04 Thread Daniel Wagner
From: Daniel Wagner Session are allowed to auto connect. This is done by checking the reason code. But before that we check if session are active. If yes we disable the normal auto connect mode and only allow sessions to establish new connections. --- src/service.c | 24 ++--

[PATCH v3 03/10] service: Add connect reason to __connman_service_connect()

2014-02-04 Thread Daniel Wagner
From: Daniel Wagner The caller indicates by providing a connect reason 'who' initiated the connection. For this we remove the userconnect bool from struct connman_service and set the __connect_service_connect() and __connman_service_disconnect(). --- src/config.c | 6 +++-- src/connman.h | 12

[PATCH v3 04/10] service: Add connect reason to __connman_serice_auto_connect()

2014-02-04 Thread Daniel Wagner
From: Daniel Wagner --- src/config.c | 2 +- src/connman.h | 2 +- src/device.c | 4 ++-- src/service.c | 30 +- src/session.c | 2 +- 5 files changed, 22 insertions(+), 18 deletions(-) diff --git a/src/config.c b/src/config.c index feee6b2..22321bf 100644 ---

[PATCH v3 00/10] Reimplementation of session selection implementation

2014-02-04 Thread Daniel Wagner
From: Daniel Wagner Hi, As result of your disucssion I completely rewrote the series. The main changes is that the session's configuration are tracked in service.c and that we track the connection request reason. With this information inside service.c, the auto connect algorithm can decide which

[PATCH v3 07/10] service: Assign services to sessions

2014-02-04 Thread Daniel Wagner
From: Daniel Wagner When a session is activated we check if there is already a service connected which matches the configuration. Also whenever a service state changes we check if we either have to remove or add a service to a session. --- src/service.c | 109

[PATCH v3 05/10] service: Store config per session

2014-02-04 Thread Daniel Wagner
From: Daniel Wagner Currently, service has no idea which session needs to be updated after the auto connect algorithm has choosen a service. Updated means that service will add and remove services to a session. First step in this support this, we start storing the bearer list per session in servi

[PATCH v3 01/10] session: Remove service selection implementation

2014-02-04 Thread Daniel Wagner
From: Daniel Wagner The current implemention is decoupled from what service.c is doing. For example session.c needs to guess via the service state which session original wanted a connection. Let's start over with a new approach. First step is to remove the current implemantation. --- src/session

[PATCH] ntp: Only accept NTP packets from the defined time server

2014-02-04 Thread Jukka Rissanen
--- src/ntp.c | 9 + 1 file changed, 9 insertions(+) diff --git a/src/ntp.c b/src/ntp.c index 57205f8..63eac03 100644 --- a/src/ntp.c +++ b/src/ntp.c @@ -117,6 +117,7 @@ static struct timespec mtx_time; static int transmit_fd = 0; static char *timeserver = NULL; +static struct sockadd

Angstrom connman version 1.4 ?

2014-02-04 Thread andrea pola
I'm on beagleboneblack using Angstrom linux distribution and using opkg list | grep connman i see that the last version avaiable is connman - 1.4-r18.0.15 - A daemon for managing internet connections within embedded devices but why on connman.net the last version is 1.21 ? connman 1.21 has th

Re: Angstrom connman version 1.4 ?

2014-02-04 Thread Patrik Flykt
Hi, On Tue, 2014-02-04 at 13:11 +0100, andrea pola wrote: > I'm on beagleboneblack using Angstrom linux distribution and using > opkg list | grep connman > > i see that the last version avaiable is connman - 1.4-r18.0.15 - A > daemon for managing internet connections within embedded d

[PATCH] wispr: Handle wispr redirect properly

2014-02-04 Thread Hannu Mallat
Return true if agent invocation is successful after receiving a valid wispr redirect message. Otherwise wispr_portal_web_result() will proceed based on HTTP status code. --- src/wispr.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/wispr.c b/src/wispr.c index 32cf75a..733debd 100644 --

Re: [PATCH] ntp: Only accept NTP packets from the defined time server

2014-02-04 Thread Patrik Flykt
On Tue, 2014-02-04 at 13:03 +0200, Jukka Rissanen wrote: > --- > src/ntp.c | 9 + > 1 file changed, 9 insertions(+) Applied, thanks! Patrik ___ connman mailing list connman@connman.net https://lists.connman.net/mailman/listinfo/connman

Re: [PATCH] wispr: Handle wispr redirect properly

2014-02-04 Thread Patrik Flykt
On Tue, 2014-02-04 at 15:06 +0200, Hannu Mallat wrote: > Return true if agent invocation is successful after receiving > a valid wispr redirect message. Otherwise wispr_portal_web_result() > will proceed based on HTTP status code. Applied, thanks! Patrik _

Re: Angstrom connman version 1.4 ?

2014-02-04 Thread Andrea Pola
Ok thanks, i've downloaded last version from https://www.kernel.org/pub/linux/network/connman/ and i try to ./configure but i've got errors for dbus version unsatisfied configure: error: D-Bus >= 1.4 is required I've made a opkg list and i see that dbus is 1.6 but libdbus not. Connman configure