Hi Daniel,
> It's unsafe to call syslog in the terminat signal handler
> because syslog takes an lock. So when the signal handler
> kicks in and we were already in syslog, we have a nice
> deadlock.
> ---
> src/main.c | 59 +++
> 1 files c
Hi Tomasz,
please shorten the subject line. If anything that is show via git log
goes over 78 characters terminal wide then it don't like it. Better have
a short subject and a detailed explanation. General rule is that
subjects should not be more than 60 characters.
> ---
> gweb/gresolv.c | 26
Hi Lucas,
> This priority string will only enable SSL 3.0 and TLS 1.0 as protocols
> and will disable, via the %COMPAT keyword, several TLS protocol options
> that are known to cause compatibility problems.
>
> Reference:
> http://www.gnu.org/software/gnutls/manual/html_node/Interoperability.htm
Hi Lucas,
> If we use gnutls 2.12.0 or later it's necessary to call
> gnutls_transport_set_lowat() to disable the lowat functionality. Since
> this function is deprecated in new versions of gnutls, call it only if
> using an older version.
> ---
> gweb/giognutls.c |2 ++
> 1 files changed, 2
On Fri, Jul 1, 2011 at 8:50 PM, Lucas De Marchi
wrote:
> If we use gnutls 2.12.0 or later it's necessary to call
> gnutls_transport_set_lowat() to disable the lowat functionality. Since
> this function is deprecated in new versions of gnutls, call it only if
> using an older version.
> ---
> gweb
This priority string will only enable SSL 3.0 and TLS 1.0 as protocols
and will disable, via the %COMPAT keyword, several TLS protocol options
that are known to cause compatibility problems.
Reference:
http://www.gnu.org/software/gnutls/manual/html_node/Interoperability.html#Interoperability
---
If we use gnutls 2.12.0 or later it's necessary to call
gnutls_transport_set_lowat() to disable the lowat functionality. Since
this function is deprecated in new versions of gnutls, call it only if
using an older version.
---
gweb/giognutls.c |2 ++
1 files changed, 2 insertions(+), 0 deletion
---
gweb/gweb.c |2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/gweb/gweb.c b/gweb/gweb.c
index 536de00..34288bf 100644
--- a/gweb/gweb.c
+++ b/gweb/gweb.c
@@ -294,6 +294,8 @@ gboolean g_web_set_address_family(GWeb *web, int family)
web->family = family;
+
---
gweb/gresolv.c | 26 ++
gweb/gresolv.h |2 ++
2 files changed, 28 insertions(+), 0 deletions(-)
diff --git a/gweb/gresolv.c b/gweb/gresolv.c
index a334d84..42a3757 100644
--- a/gweb/gresolv.c
+++ b/gweb/gresolv.c
@@ -62,6 +62,8 @@ struct resolv_lookup {
G
Hi,
Here is two patches to make address family restriction consistent in both gweb
and gresolv.
First patch adds g_resolv_set_address_family() and second one add its usage
inside g_web_set_address_family() so the resolver in gweb gets the restriction
applied too.
Please review,
Tomasz Burszt
---
plugins/ofono.c | 51 ++-
1 files changed, 42 insertions(+), 9 deletions(-)
diff --git a/plugins/ofono.c b/plugins/ofono.c
index 7efb265..68acba5 100644
--- a/plugins/ofono.c
+++ b/plugins/ofono.c
@@ -335,6 +335,36 @@ static struct connman_dev
---
plugins/wifi.c | 39 +++
1 files changed, 27 insertions(+), 12 deletions(-)
diff --git a/plugins/wifi.c b/plugins/wifi.c
index edea4e7..c5c0273 100644
--- a/plugins/wifi.c
+++ b/plugins/wifi.c
@@ -61,6 +61,7 @@ struct wifi_data {
struct connman_de
---
plugins/bluetooth.c | 35 +++
1 files changed, 35 insertions(+), 0 deletions(-)
diff --git a/plugins/bluetooth.c b/plugins/bluetooth.c
index 39833a0..cdb20ff 100644
--- a/plugins/bluetooth.c
+++ b/plugins/bluetooth.c
@@ -599,6 +599,36 @@ static gboolean devic
From: Daniel Wagner
---
src/network.c |1 -
1 files changed, 0 insertions(+), 1 deletions(-)
diff --git a/src/network.c b/src/network.c
index 448c54c..c0c2773 100644
--- a/src/network.c
+++ b/src/network.c
@@ -332,7 +332,6 @@ static void network_destruct(struct connman_network
*network)
From: Daniel Wagner
The bluetooth plugin creates the network object therefore
it should also unref (destroy) it.
---
plugins/bluetooth.c | 18 +++---
1 files changed, 15 insertions(+), 3 deletions(-)
diff --git a/plugins/bluetooth.c b/plugins/bluetooth.c
index 65a9d5d..39833a0 100
From: Daniel Wagner
If free_network is called before the driver->disable() callback
the device has been removed from the networking structure.
---
src/device.c |4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/device.c b/src/device.c
index a2e9386..241cd8c 100644
--
From: Daniel Wagner
---
include/device.h|2 +-
plugins/bluetooth.c |6 ++
plugins/ethernet.c |5 +
plugins/ofono.c |5 ++---
plugins/wifi.c | 14 +++---
src/device.c|8
6 files changed, 17 insertions(+), 23 deletions(-)
diff -
From: Daniel Wagner
Therefore destroy network objects when the carrier goes offline.
---
plugins/ethernet.c | 26 ++
1 files changed, 22 insertions(+), 4 deletions(-)
diff --git a/plugins/ethernet.c b/plugins/ethernet.c
index 2ccd498..5c02640 100644
--- a/plugins/ether
From: Daniel Wagner
---
src/device.c |2 --
1 files changed, 0 insertions(+), 2 deletions(-)
diff --git a/src/device.c b/src/device.c
index 386be44..ada9233 100644
--- a/src/device.c
+++ b/src/device.c
@@ -1116,8 +1116,6 @@ int connman_device_remove_network(struct connman_device
*device,
From: Daniel Wagner
Since the service object doesn't take a reference the
intermediate step of having a connman_network_register/unregister
is not needed. This function are only there to have an additional
step where probe()/remove() will be called. This is the job of
connman_device_add_network()
From: Daniel Wagner
I don't think this is a good solution because the magic to choose the
right network for the service shouldn't be part of device. Maybe
passing the networks to service to select the right one would be
better?
---
src/device.c | 28
1 files change
From: Daniel Wagner
which were created by the plugins. The hidden wifi
networks will be created by service and therefore
service is the owner of the network objects and
does the unref when the service is destroyed.
---
src/service.c |5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
From: Daniel Wagner
The destroy callback of the hash table (device->networks)
will unref and unregister the network object.
---
src/device.c |5 +
1 files changed, 1 insertions(+), 4 deletions(-)
diff --git a/src/device.c b/src/device.c
index 6e52164..a35ef65 100644
--- a/src/device.c
+
It's unsafe to call syslog in the terminat signal handler
because syslog takes an lock. So when the signal handler
kicks in and we were already in syslog, we have a nice
deadlock.
---
src/main.c | 59 +++
1 files changed, 51 insertions(+),
From: Daniel Wagner
Hi,
here is an update on this serie. I'm not happy with patch number 3.
The rest should be updated according the feedback I got.
cheers,
daniel
Daniel Wagner (14):
main: Use signalfd instead of plain signals
device: Fix a inbalance of ref/unref of network objects
d
Hi Tomasz,
> >> gboolean g_resolv_cancel_lookup(GResolv *resolv, guint id);
> >>
> >> +gboolean g_resolv_set_result_address_family(GResolv *resolv, int family);
> >> +
> > why is not using g_web_set_address_family() enough and just restrict
> > outgoing and result at the same time?
> gweb is no
Hi Jussi,
> >> + g_queue_push_tail(service->ipconfig_state_queue, data);
> >> +
> >> + /* XXX This is just a stupid idea: Let's defer everything by 1 second.
> >> */
> >> + g_timeout_add_seconds(1, ipconfig_queue_process, service);
> >
> > could not agree more ;)
> >
> > However a g_timeout_
Hi Henri,
On Fri, Jul 01, 2011 at 09:25:26AM +0300, Henri Bragge wrote:
> > > Another, cleaner way could be to add new fields for agent provided
> > > identity/passphrase in service struct (agent_identity/agent_passphrase)
> > > and network ("WiFi.AgentIdentity" and "WiFi.AgentPassphrase").
> > I
From: Patrik Flykt
In order to connect a provider/VPN, ConnMan needs to have a
IP network connection through any of the services associated
with a network.
---
include/service.h |1 +
src/service.c | 27 +++
2 files changed, 28 insertions(+), 0 deletions(-)
dif
From: Patrik Flykt
---
src/session.c | 22 +++---
1 files changed, 19 insertions(+), 3 deletions(-)
diff --git a/src/session.c b/src/session.c
index 8376bf7..33f7171 100644
--- a/src/session.c
+++ b/src/session.c
@@ -865,6 +865,22 @@ static void select_and_connect(struct connm
From: Patrik Flykt
Check that at least some service is connected before attempting
to connect a proviver/VPN service.
---
src/session.c |8
1 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/src/session.c b/src/session.c
index e266190..8376bf7 100644
--- a/src/session.c
From: Patrik Flykt
---
src/session.c |2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/src/session.c b/src/session.c
index fb12d3c..e266190 100644
--- a/src/session.c
+++ b/src/session.c
@@ -568,6 +568,8 @@ static int service_type_weight(enum connman_service_type
type)
From: Patrik Flykt
Hi,
Here is a first rough take on VPN support for sessions. The VPN support
assumes there are already VPN services created beforehand, i.e. configured
via ConnectProvider before session mode is enabled.
I'm thinking that a VPN should be sorted to the session service
From: Alok Barsode
Traverse the list of technologies and enable/disable each instead of
traversing the device list.
---
src/connman.h|5 ++---
src/device.c | 43 ---
src/manager.c|4 +---
src/profile.c|6 +-
src/technology
Hi Marcel,
>> gboolean g_resolv_cancel_lookup(GResolv *resolv, guint id);
>>
>> +gboolean g_resolv_set_result_address_family(GResolv *resolv, int family);
>> +
> why is not using g_web_set_address_family() enough and just restrict
> outgoing and result at the same time?
gweb is not used in wpad
From: Patrik Flykt
---
src/provider.c |1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/src/provider.c b/src/provider.c
index afbfeeb..5bc8c40 100644
--- a/src/provider.c
+++ b/src/provider.c
@@ -156,6 +156,7 @@ static void provider_destruct(struct connman_provider
*provi
From: Patrik Flykt
Detect 'Host' and 'VPN.Domain' strings being set and insert them
properly into the provider structure. Also ensure that the
strings corresponding to provider structure members are not
duplicated into the provider string settings hash.
---
src/provider.c | 11 ---
1 f
From: Patrik Flykt
The items on session->service_list GSequence are of type
service_entry. Fix sorting function to cast the items correctly.
---
src/session.c |7 ---
1 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/src/session.c b/src/session.c
index 91758e2..45bcc0e 10064
From: Patrik Flykt
---
src/session.c |5 -
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/src/session.c b/src/session.c
index 45bcc0e..fb12d3c 100644
--- a/src/session.c
+++ b/src/session.c
@@ -196,6 +196,8 @@ static enum connman_service_type bearer2service(const char
*b
From: Patrik Flykt
---
src/provider.c |4
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/src/provider.c b/src/provider.c
index 39b9a9b..1e58b8c 100644
--- a/src/provider.c
+++ b/src/provider.c
@@ -644,6 +644,10 @@ const char *connman_provider_get_string(struct
connman_p
From: Patrik Flykt
Hi,
Here is a bunch of bug fixes for various issues found in provider.c and
session.c. The fixes for provider.c were sent earlier as part of the
provider save/load support, but I'm sending them here anyway because they
are independent of those changes.
Especially imp
On 06/30/2011 11:45 PM, Marcel Holtmann wrote:
> Hi Daniel,
>
>
>
>> +
>> +g_queue_push_tail(service->ipconfig_state_queue, data);
>> +
>> +/* XXX This is just a stupid idea: Let's defer everything by 1 second.
>> */
>> +g_timeout_add_seconds(1, ipconfig_queue_process, service);
>
In previous patch, __connman_service_ipconfig_indicate_state() was introduced.
Now the ipconfig state logic which was in __connman_service_indicate_state()
has been moved there.
If relevant, __connman_service_indicate_state() will be called from
__connman_service_ipconfig_indicate_state().
Now, a s
---
src/connection.c |6 --
src/connman.h|2 --
src/location.c |2 +-
src/network.c| 52
src/provider.c |6 +++---
src/service.c| 48
6 files changed, 52 in
---
src/connman.h |4
src/service.c | 44
2 files changed, 48 insertions(+), 0 deletions(-)
diff --git a/src/connman.h b/src/connman.h
index 0c6d6b1..4cc2429 100644
--- a/src/connman.h
+++ b/src/connman.h
@@ -497,6 +497,10 @@ void __connman_
---
test/monitor-connman | 47 +--
1 files changed, 45 insertions(+), 2 deletions(-)
diff --git a/test/monitor-connman b/test/monitor-connman
index cf8f7a6..4d44519 100755
--- a/test/monitor-connman
+++ b/test/monitor-connman
@@ -7,12 +7,54 @@ import
Hi Daniel, Samuel and Marcel,
I reworked Daniel's patches. So the 3 first ones are exactly doing the same,
it's just updated to apply with latest master's HEAD.
The big change is in patch 4, and I think this is the right way to proceed:
separating ipconfig state handling and service state handl
47 matches
Mail list logo