Re: [PATCH v4] ofono: Free network_info

2011-03-16 Thread Henri Bragge
Hi Daniel, On Tue, 2011-03-15 at 15:02 +0100, Daniel Wagner wrote: From: Daniel Wagner daniel.wag...@bmw-carit.de The network_info data structure is not freed. Also the error path does not handle the freeing of the data structure correctly. Works here, thanks for the patch! - Henri

Re: [PATCH v4] ofono: Free network_info

2011-03-16 Thread Samuel Ortiz
Hi Daniel, On Tue, Mar 15, 2011 at 03:02:08PM +0100, Daniel Wagner wrote: From: Daniel Wagner daniel.wag...@bmw-carit.de The network_info data structure is not freed. Also the error path does not handle the freeing of the data structure correctly. Reported by: Henri Bragge

[RFC v3 1/2] Update session documantion.

2011-03-16 Thread Daniel Wagner
From: Marcel Hotlmann mar...@hotlmann.org --- doc/manager-api.txt | 33 doc/session-api.txt | 240 +++ 2 files changed, 257 insertions(+), 16 deletions(-) create mode 100644 doc/session-api.txt diff --git a/doc/manager-api.txt

[RFC v3 0/2] Session API

2011-03-16 Thread Daniel Wagner
From: Daniel Wagner daniel.wag...@bmw-carit.de Hi, Another update on this series. cheers, daniel Daniel Wagner (1): session: Refactor Session API Marcel Hotlmann (1): Update session documantion. doc/manager-api.txt | 44 ++- doc/session-api.txt | 240 +

[RFC v3 2/2] session: Refactor Session API

2011-03-16 Thread Daniel Wagner
From: Daniel Wagner daniel.wag...@bmw-carit.de In order to enable session support there is a master switch (EnableSessionMode) on the manager. If enabled all service will disconnected and keept disconnected. Only services which are part of a session will be allowed to connect. The service layer

Re: [RFC 1/4] manager: Add hooks for the PrivateNetwork API

2011-03-16 Thread Samuel Ortiz
Hi Gustavo, On Fri, Mar 04, 2011 at 09:36:43PM -0300, Gustavo F. Padovan wrote: RequestPrivateNetwork() doesn't return an fd yet and both of them are completely dummy. Looks good, but I think we could merge this one with the second patch. Also, you need to update the doc/manager-api.txt file.

Re: [RFC 2/4] private-network: add support to create TUN interface

2011-03-16 Thread Samuel Ortiz
Hi Gustavo, On Fri, Mar 04, 2011 at 09:36:44PM -0300, Gustavo F. Padovan wrote: +static int create_tun_interface(char **iface) +{ + struct ifreq ifr; + int i, fd; + + fd = open(/dev/net/tun, O_RDWR); + if (fd 0) { + i = -errno; +

Re: [RFC 3/4] private-network: add ip configuration and NAT

2011-03-16 Thread Samuel Ortiz
Hi Gustavo, On Fri, Mar 04, 2011 at 09:36:45PM -0300, Gustavo F. Padovan wrote: --- a/src/tethering.c +++ b/src/tethering.c @@ -50,6 +50,10 @@ #define BRIDGE_IP_END 192.168.218.200 #define BRIDGE_DNS 8.8.8.8 +#define PRIVATE_NETWORK_IP 192.168.219.1 +#define PRIVATE_NETWORK_PEER

[PATCH 6to4 v4 01/10] doc: Add description about 6to4 tunnelling.

2011-03-16 Thread Jukka Rissanen
--- doc/service-api.txt | 10 ++ 1 files changed, 10 insertions(+), 0 deletions(-) diff --git a/doc/service-api.txt b/doc/service-api.txt index 65554a2..e13808e 100644 --- a/doc/service-api.txt +++ b/doc/service-api.txt @@ -332,6 +332,16 @@ Properties string State [readonly]

[PATCH 6to4 v4 00/10] 6to4 tunneling support

2011-03-16 Thread Jukka Rissanen
Hi, this is v4 of the 6to4 tunneling support and many things have been changed in this version like: - 6to4 tunnel setting in service is read only i.e., it cannot be manipulated via dbus any longer - generic tunnel creation added to inet.c - IPv6 router solicitation / advertisement handling in

[PATCH 6to4 v4 03/10] inet: Add routines to send IPv6 router solicitation message.

2011-03-16 Thread Jukka Rissanen
--- include/inet.h |8 ++ src/inet.c | 315 2 files changed, 323 insertions(+), 0 deletions(-) diff --git a/include/inet.h b/include/inet.h index 9a9411d..3ed19c4 100644 --- a/include/inet.h +++ b/include/inet.h @@ -25,6 +25,8 @@

[PATCH 6to4 v4 02/10] inet: MTU and tunnel setup functions added.

2011-03-16 Thread Jukka Rissanen
--- include/inet.h |3 ++ src/inet.c | 71 ++- 2 files changed, 72 insertions(+), 2 deletions(-) diff --git a/include/inet.h b/include/inet.h index 9ba7781..9a9411d 100644 --- a/include/inet.h +++ b/include/inet.h @@ -73,6 +73,9 @@

[PATCH 6to4 v4 05/10] 6to4: Add 6to4 tunnel support.

2011-03-16 Thread Jukka Rissanen
--- Makefile.am |2 +- src/6to4.c| 498 + src/connman.h |3 + 3 files changed, 502 insertions(+), 1 deletions(-) create mode 100644 src/6to4.c diff --git a/Makefile.am b/Makefile.am index 3ad1ee9..95aefc7 100644 ---

[PATCH 6to4 v4 06/10] 6to4: Check the connectivity via tunnel after creating it.

2011-03-16 Thread Jukka Rissanen
--- src/6to4.c | 47 ++- 1 files changed, 46 insertions(+), 1 deletions(-) diff --git a/src/6to4.c b/src/6to4.c index 68472e6..52a0c53 100644 --- a/src/6to4.c +++ b/src/6to4.c @@ -41,10 +41,15 @@ #include connman.h #include connman/log.h #include

[PATCH 6to4 v4 09/10] service: Return 6to4 tunnel status to dbus caller.

2011-03-16 Thread Jukka Rissanen
--- src/service.c | 10 +- 1 files changed, 9 insertions(+), 1 deletions(-) diff --git a/src/service.c b/src/service.c index 29d6af5..77e16a5 100644 --- a/src/service.c +++ b/src/service.c @@ -987,8 +987,16 @@ static void append_ipv4(DBusMessageIter *iter, void *user_data) if

[PATCH 6to4 v4 08/10] 6to4: Check if the 6to4 tunnel is active or not.

2011-03-16 Thread Jukka Rissanen
--- src/6to4.c| 20 src/connman.h |1 + 2 files changed, 21 insertions(+), 0 deletions(-) diff --git a/src/6to4.c b/src/6to4.c index 52a0c53..8593e71 100644 --- a/src/6to4.c +++ b/src/6to4.c @@ -541,3 +541,23 @@ void __connman_6to4_remove(struct connman_ipconfig

[PATCH 6to4 v4 07/10] service: Create/remove 6to4 tunnel.

2011-03-16 Thread Jukka Rissanen
--- src/dhcp.c|4 src/service.c |2 ++ 2 files changed, 6 insertions(+), 0 deletions(-) diff --git a/src/dhcp.c b/src/dhcp.c index 6fda67d..dd7c498 100644 --- a/src/dhcp.c +++ b/src/dhcp.c @@ -73,6 +73,8 @@ static void dhcp_invalid(struct connman_dhcp *dhcp) if (ipconfig

[PATCH 6to4 v4 10/10] test: Add support for 6to4 tunnel status printing.

2011-03-16 Thread Jukka Rissanen
--- test/list-services |8 +++- 1 files changed, 7 insertions(+), 1 deletions(-) diff --git a/test/list-services b/test/list-services index 3ae6a4d..bfb0f73 100755 --- a/test/list-services +++ b/test/list-services @@ -12,7 +12,13 @@ def extract_values(values): if

Re: PEAP configuration file

2011-03-16 Thread Samuel Ortiz
Hi Gustavo, On Wed, Mar 16, 2011 at 04:28:21PM -0300, Gustavo F. Padovan wrote: I'm having a similar problem with my university wireless network. With the default gentoo network scripts everything work fine, wpa_supplicant conf follows: network={ ssid=Alunos-IC3

RE: PEAP configuration file

2011-03-16 Thread Zheng, Jeff
It works for me with: [global] Name = MeeGo Description = Private network configuration [service_intel] Type = wifi Name = ssid EAP = peap CACertFile = cert file Passphrase = password Identity = identity Phase2 = MSCHAPV2 Bests Jeff -Original Message- From: connman-boun...@connman.net