Re: [PATCH] Allow service to get the related network

2009-07-09 Thread Jukka Rissanen
On Thu, Jul 9, 2009 at 8:45 PM, Marcel Holtmannmar...@holtmann.org wrote: Hi Jukka, the following patch allows service element to get information about the related network. I created a custom storage plugin that updates the wifi information (like passphrase) in plugins service_load() method.

Connman 0.40 regression from 0.19

2009-09-02 Thread Jukka Rissanen
Hi, I just noticed a regression in 0.40 (compared to 0.19). I have two network interfaces (wlan0 and usb0) in host and want to only enable wlan0 interface so I use /usr/sbin/connmand -n -i wlan* to start connmand. In 0.19 this worked ok, my usb0 interface was left intact and I could use

Re: Connman 0.40 regression from 0.19

2009-09-02 Thread Jukka Rissanen
Hi Marcel, 2009/9/2 Marcel Holtmann mar...@holtmann.org: I also noticed that -I cmd line option is not used anywhere so perhaps it could be removed alltogether from the code. The -I should do the exact opposite. Allow all interfaces except that one. Kinda nice if you wanna exclude eth0 for

[PATCH proxy-manual 1/5] Add manual proxy description

2010-08-26 Thread Jukka Rissanen
--- doc/service-api.txt | 69 +- 1 files changed, 67 insertions(+), 2 deletions(-) diff --git a/doc/service-api.txt b/doc/service-api.txt index c1dd541..b8b694b 100644 --- a/doc/service-api.txt +++ b/doc/service-api.txt @@ -410,13 +410,78 @@

[PATCH proxy-manual 3/5] Add test script for setting up proxy

2010-08-26 Thread Jukka Rissanen
--- Makefile.am|3 +- test/set-proxy | 74 2 files changed, 76 insertions(+), 1 deletions(-) create mode 100755 test/set-proxy diff --git a/Makefile.am b/Makefile.am index 1bf7207..128d4b8 100644 --- a/Makefile.am +++

[PATCH proxy-manual 4/5] Pretty print proxy data

2010-08-26 Thread Jukka Rissanen
--- test/get-services |9 ++--- test/list-providers |8 ++-- test/list-services|8 ++-- test/monitor-services | 10 +++--- test/test-manager |8 ++-- 5 files changed, 31 insertions(+), 12 deletions(-) diff --git a/test/get-services

[PATCH proxy-manual 5/5] Add plugin for setting up proxy data in gconf

2010-08-26 Thread Jukka Rissanen
--- Makefile.plugins |7 ++ configure.ac | 10 +++ plugins/proxygconf.c | 183 ++ 3 files changed, 200 insertions(+), 0 deletions(-) create mode 100644 plugins/proxygconf.c diff --git a/Makefile.plugins b/Makefile.plugins index

[PATCH IPv6] Separate IPv4 and IPv6 in struct connman_ipconfig so that connman can work with IPv6 only networks.

2010-11-22 Thread Jukka Rissanen
--- include/ipconfig.h |3 +- include/network.h |4 +- plugins/ofono.c|4 +- src/connman.h | 13 ++- src/ipconfig.c | 381 +--- src/ipv4.c |2 +- src/network.c | 150 +

[PATCH] Update TODO list about IPv6 enhancements

2010-11-24 Thread Jukka Rissanen
+ Owner: Jukka Rissanen jukka.rissa...@nokia.com + + Support IPv6 only networks so that system can go online even if + there is no IPv4 address. Also support more than one IPv6 address + in one device so that the addresses are reported correctly via + dbus interface. The autoconf IPv6

[PATCH IPv6 v2 00/10] Separate IPv4 and IPv6 data

2010-12-09 Thread Jukka Rissanen
available (like in many LTE networks). Everything should be working as is after the patch i.e., the patch does not change any fundamental things but the patch is needed for future work. Regards, Jukka Jukka Rissanen (10): Make sure ipconfig is not null before accessing members Removed ipconfig

[PATCH IPv6 v2 03/10] Do not add duplicate IP address to address list.

2010-12-09 Thread Jukka Rissanen
--- src/ipconfig.c | 17 + 1 files changed, 17 insertions(+), 0 deletions(-) diff --git a/src/ipconfig.c b/src/ipconfig.c index 133db61..62323c7 100644 --- a/src/ipconfig.c +++ b/src/ipconfig.c @@ -594,6 +594,17 @@ void __connman_ipconfig_dellink(int index, struct

[PATCH IPv6 v2 02/10] Removed ipconfig from connman_network struct as it is not used.

2010-12-09 Thread Jukka Rissanen
--- src/network.c |6 -- 1 files changed, 0 insertions(+), 6 deletions(-) diff --git a/src/network.c b/src/network.c index 0e22522..e5fd7ab 100644 --- a/src/network.c +++ b/src/network.c @@ -44,7 +44,6 @@ struct connman_network { char *name; char *node; char

[PATCH IPv6 v2 04/10] Allow more than one IP address in the address list.

2010-12-09 Thread Jukka Rissanen
--- src/ipconfig.c |3 --- 1 files changed, 0 insertions(+), 3 deletions(-) diff --git a/src/ipconfig.c b/src/ipconfig.c index 62323c7..fe99b81 100644 --- a/src/ipconfig.c +++ b/src/ipconfig.c @@ -649,9 +649,6 @@ void __connman_ipconfig_newaddr(int index, int family, const char *label,

[PATCH IPv6 v2 06/10] Separate IPv4 and IPv6 in connman_ipconfig struct so that connman can work with IPv6 only networks.

2010-12-09 Thread Jukka Rissanen
This patch does not yet enable IPv6 only network support but it is required for later work. --- include/ipconfig.h |3 +- include/network.h |4 +- plugins/ofono.c|4 +- src/connman.h | 11 ++- src/ipconfig.c | 321

[PATCH IPv6 v2 07/10] Return only a valid IPv6 configuration

2010-12-09 Thread Jukka Rissanen
--- src/ipconfig.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/ipconfig.c b/src/ipconfig.c index a2a7bf2..9ba8486 100644 --- a/src/ipconfig.c +++ b/src/ipconfig.c @@ -1202,7 +1202,7 @@ void connman_ipconfig_set_ops(struct connman_ipconfig *ipconfig, struct

[PATCH IPv6 v2 08/10] Set the IPv6 gateway address only if using IPv6 config

2010-12-09 Thread Jukka Rissanen
--- src/ipconfig.c |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/src/ipconfig.c b/src/ipconfig.c index 9ba8486..cf164c0 100644 --- a/src/ipconfig.c +++ b/src/ipconfig.c @@ -1254,7 +1254,8 @@ void __connman_ipconfig_set_element_ipv6_gateway(

[PATCH IPv6 v2 09/10] Check that ipconfig is valid IPv4 config before returning data

2010-12-09 Thread Jukka Rissanen
--- src/ipconfig.c |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/src/ipconfig.c b/src/ipconfig.c index cf164c0..fef98cc 100644 --- a/src/ipconfig.c +++ b/src/ipconfig.c @@ -1528,6 +1528,9 @@ void __connman_ipconfig_append_ipv4(struct connman_ipconfig *ipconfig,

[PATCH IPv6 v2 10/10] Check that ipconfig is valid IPv6 config before returning data

2010-12-09 Thread Jukka Rissanen
--- src/ipconfig.c |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/src/ipconfig.c b/src/ipconfig.c index fef98cc..17ac5d3 100644 --- a/src/ipconfig.c +++ b/src/ipconfig.c @@ -1567,6 +1567,9 @@ void __connman_ipconfig_append_ipv6(struct connman_ipconfig *ipconfig,

[PATCH IPv6 v2 01/10] Make sure ipconfig is not null before accessing members

2010-12-09 Thread Jukka Rissanen
--- src/ipconfig.c |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/src/ipconfig.c b/src/ipconfig.c index a872dff..133db61 100644 --- a/src/ipconfig.c +++ b/src/ipconfig.c @@ -998,7 +998,8 @@ static void free_ipv6config(struct connman_ipconfig *ipconfig) */ void

[PATCH autoconf 0/3] Add support for autoconfigured IPv6 addresses

2010-12-15 Thread Jukka Rissanen
Hi, this patch set adds support for autoconfigured IPv6 addresses. I introduced a new CONNMAN_IPCONFIG_METHOD_AUTOCONF method that is only valid in IPv6 networks. Please review. Regards, Jukka Jukka Rissanen (3): ipv6: Added autoconf IP configuration method which is used in IPv6

[PATCH autoconf 1/3] ipv6: Added autoconf IP configuration method which is used in IPv6 networks

2010-12-15 Thread Jukka Rissanen
--- include/ipconfig.h | 11 ++- plugins/ofono.c|1 + src/ipconfig.c |9 + src/network.c |5 + 4 files changed, 21 insertions(+), 5 deletions(-) diff --git a/include/ipconfig.h b/include/ipconfig.h index 01b8aaf..ed03081 100644 ---

[PATCH autoconf 3/3] ipv6: Added description of IPv6 autoconf method

2010-12-15 Thread Jukka Rissanen
--- doc/service-api.txt |5 - 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/doc/service-api.txt b/doc/service-api.txt index d309736..485c3de 100644 --- a/doc/service-api.txt +++ b/doc/service-api.txt @@ -365,12 +365,15 @@ Propertiesstring State [readonly]

[PATCH autoconf 2/3] ipv6: Add support for auto configured IPv6 addresses

2010-12-15 Thread Jukka Rissanen
--- include/ipconfig.h |1 + src/connman.h |3 ++- src/ipconfig.c | 42 +++--- src/rtnl.c | 15 --- 4 files changed, 50 insertions(+), 11 deletions(-) diff --git a/include/ipconfig.h b/include/ipconfig.h index

[PATCH autoconf v2 1/8] ipconfig: Remove unnecessary null checks

2010-12-21 Thread Jukka Rissanen
--- src/network.c | 11 ++- 1 files changed, 2 insertions(+), 9 deletions(-) diff --git a/src/network.c b/src/network.c index 57d873a..1bc5a6c 100644 --- a/src/network.c +++ b/src/network.c @@ -738,15 +738,8 @@ static gboolean set_connected(gpointer user_data) DBG(service %p

[PATCH autoconf v2 2/8] ipconfig: Added auto method that is used for IPv6 auto configured addresses

2010-12-21 Thread Jukka Rissanen
--- include/ipconfig.h |1 + plugins/ofono.c|1 + src/ipconfig.c |9 + src/network.c |5 + 4 files changed, 16 insertions(+), 0 deletions(-) diff --git a/include/ipconfig.h b/include/ipconfig.h index e8f6de1..9bc97d5 100644 --- a/include/ipconfig.h +++

[PATCH autoconf v2 4/8] ipv6: Test script for setting IPv6 Method

2010-12-21 Thread Jukka Rissanen
--- test/set-ipv6-method | 33 + 1 files changed, 33 insertions(+), 0 deletions(-) create mode 100755 test/set-ipv6-method diff --git a/test/set-ipv6-method b/test/set-ipv6-method new file mode 100755 index 000..569e887 --- /dev/null +++

[PATCH autoconf v2 0/8] IPv6 auto configuration

2010-12-21 Thread Jukka Rissanen
for that interface. Regards, Jukka Jukka Rissanen (8): ipconfig: Remove unnecessary null checks ipconfig: Added auto method that is used for IPv6 auto configured addresses ipconfig: Default method is auto for IPv6 ipv6: Test script for setting IPv6 Method ipv6: Do not set

[PATCH autoconf v2 3/8] ipconfig: Default method is auto for IPv6

2010-12-21 Thread Jukka Rissanen
--- src/ipconfig.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/ipconfig.c b/src/ipconfig.c index 6ab7025..7a53689 100644 --- a/src/ipconfig.c +++ b/src/ipconfig.c @@ -852,7 +852,7 @@ static struct connman_ipconfig *create_ipv6config(int index)

[PATCH autoconf v2 5/8] ipv6: Do not set the method as it is set when ipconfig is created

2010-12-21 Thread Jukka Rissanen
--- src/service.c |3 --- 1 files changed, 0 insertions(+), 3 deletions(-) diff --git a/src/service.c b/src/service.c index 6ca80cd..14de1d0 100644 --- a/src/service.c +++ b/src/service.c @@ -3818,9 +3818,6 @@ static void setup_ip6config(struct connman_service *service, int index)

[PATCH autoconf v2 6/8] ipv6: Clear the IPv6 address if that address is removed from system

2010-12-21 Thread Jukka Rissanen
--- src/ipconfig.c |8 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/src/ipconfig.c b/src/ipconfig.c index 7a53689..6196a03 100644 --- a/src/ipconfig.c +++ b/src/ipconfig.c @@ -616,6 +616,14 @@ void __connman_ipconfig_deladdr(int index, int family, const char

[PATCH autoconf v2 8/8] ipv6: Do not disconnect IPv4 if IPv6 method changes

2010-12-21 Thread Jukka Rissanen
--- src/service.c | 46 ++ 1 files changed, 26 insertions(+), 20 deletions(-) diff --git a/src/service.c b/src/service.c index 14de1d0..994eaa6 100644 --- a/src/service.c +++ b/src/service.c @@ -2039,6 +2039,7 @@ static DBusMessage

[PATCH memleak 02/10] memoryleak: SSID was not freed

2010-12-22 Thread Jukka Rissanen
--- plugins/supplicant.c |6 +- 1 files changed, 5 insertions(+), 1 deletions(-) diff --git a/plugins/supplicant.c b/plugins/supplicant.c index 5f2d204..df181d8 100644 --- a/plugins/supplicant.c +++ b/plugins/supplicant.c @@ -635,8 +635,12 @@ static void

[PATCH memleak 01/10] memoryleak: network interface string was not freed

2010-12-22 Thread Jukka Rissanen
--- plugins/portal.c | 18 -- 1 files changed, 12 insertions(+), 6 deletions(-) diff --git a/plugins/portal.c b/plugins/portal.c index d4456f5..cad2998 100644 --- a/plugins/portal.c +++ b/plugins/portal.c @@ -105,7 +105,7 @@ static int location_detect(struct connman_location

[PATCH memleak 09/10] Possible memory leak when creating ipconfig

2010-12-22 Thread Jukka Rissanen
--- src/service.c |6 -- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/service.c b/src/service.c index c6d3d36..2e5974f 100644 --- a/src/service.c +++ b/src/service.c @@ -4324,7 +4324,8 @@ __connman_service_create_from_provider(struct connman_provider *provider)

[PATCH memleak 06/10] memoryleak: method was not freed

2010-12-22 Thread Jukka Rissanen
--- src/ipconfig.c |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/src/ipconfig.c b/src/ipconfig.c index 3e6f738..db350d3 100644 --- a/src/ipconfig.c +++ b/src/ipconfig.c @@ -1742,7 +1742,7 @@ void __connman_ipconfig_append_ethernet(struct connman_ipconfig *ipconfig,

[PATCH memleak v2 1/4] memoryleak: remove the element for real

2010-12-22 Thread Jukka Rissanen
--- src/connection.c |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/src/connection.c b/src/connection.c index bac700f..1a386ae 100644 --- a/src/connection.c +++ b/src/connection.c @@ -405,6 +405,8 @@ static void connection_remove(struct connman_element *element)

[PATCH memleak v2 2/4] memoryleak: dhcp_client is already referenced when created

2010-12-22 Thread Jukka Rissanen
--- plugins/dhcp.c |2 -- 1 files changed, 0 insertions(+), 2 deletions(-) diff --git a/plugins/dhcp.c b/plugins/dhcp.c index e3d1957..aaac96d 100644 --- a/plugins/dhcp.c +++ b/plugins/dhcp.c @@ -154,8 +154,6 @@ static int dhcp_request(struct connman_dhcp *dhcp)

[PATCH memleak v2 0/4] More memory leaks

2010-12-22 Thread Jukka Rissanen
Hi again, more memory leaks, these were a bit trickier to find. Regards, Jukka Jukka Rissanen (4): memoryleak: remove the element for real memoryleak: dhcp_client is already referenced when created memoryleak: remove the element when not needed memoryleak: remove element when

[PATCH memleak resend 05/15] memoryleak: block was not freed

2010-12-31 Thread Jukka Rissanen
--- plugins/supplicant.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/plugins/supplicant.c b/plugins/supplicant.c index df181d8..6e29911 100644 --- a/plugins/supplicant.c +++ b/plugins/supplicant.c @@ -224,6 +224,7 @@ static void remove_block(gpointer user_data)

[PATCH memleak resend 06/15] memoryleak: method was not freed

2010-12-31 Thread Jukka Rissanen
--- src/ipconfig.c |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/src/ipconfig.c b/src/ipconfig.c index 57e3218..690b51e 100644 --- a/src/ipconfig.c +++ b/src/ipconfig.c @@ -1634,7 +1634,7 @@ void __connman_ipconfig_append_ethernet(struct connman_ipconfig *ipconfig,

[PATCH memleak resend 04/15] memoryleak: address was not freed

2010-12-31 Thread Jukka Rissanen
--- plugins/dhcp.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/plugins/dhcp.c b/plugins/dhcp.c index 07fed38..5fe99d7 100644 --- a/plugins/dhcp.c +++ b/plugins/dhcp.c @@ -76,6 +76,7 @@ static void lease_available_cb(GDHCPClient *dhcp_client, gpointer user_data)

[PATCH memleak resend 12/15] memoryleak: dhcp_client is already referenced when created

2010-12-31 Thread Jukka Rissanen
--- plugins/dhcp.c |2 -- 1 files changed, 0 insertions(+), 2 deletions(-) diff --git a/plugins/dhcp.c b/plugins/dhcp.c index 5fe99d7..54306ed 100644 --- a/plugins/dhcp.c +++ b/plugins/dhcp.c @@ -191,8 +191,6 @@ static int dhcp_request(struct connman_dhcp *dhcp)

[PATCH memleak resend 15/15] memoryleak: root element was not freed

2010-12-31 Thread Jukka Rissanen
--- src/element.c |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/src/element.c b/src/element.c index a4230b7..1dcc695 100644 --- a/src/element.c +++ b/src/element.c @@ -1463,6 +1463,8 @@ void __connman_element_cleanup(void) g_node_traverse(element_root,

[PATCH memleak resend v2 1/2] memoryleak: check return value correctly before clearing pointer

2011-01-03 Thread Jukka Rissanen
--- src/service.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/service.c b/src/service.c index 61e065b..e58c08f 100644 --- a/src/service.c +++ b/src/service.c @@ -3406,10 +3406,10 @@ int __connman_service_disconnect(struct connman_service *service)

[PATCH memleak resend v3 2/2] Make calls to __connman_ipconfig_disable() consistent.

2011-01-03 Thread Jukka Rissanen
--- src/service.c | 12 ++-- 1 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/service.c b/src/service.c index 18b0340..09cc4eb 100644 --- a/src/service.c +++ b/src/service.c @@ -2233,11 +2233,11 @@ static gboolean connect_timeout(gpointer user_data)

[PATCH memleak service 0/3] Memory leak fixes in service

2011-01-05 Thread Jukka Rissanen
and then incorrectly clears ipconfig. The patch unrefs the ipconfig correctly before setting ipconfig to NULL. The patch 3 frees the IPv6 gateway address as it was never done. Regards, Jukka Jukka Rissanen (3): ipconfig: add debugging to ref counting functions memoryleak: ipconfig

[PATCH memleak service 1/3] ipconfig: add debugging to ref counting functions

2011-01-05 Thread Jukka Rissanen
--- src/ipconfig.c | 12 ++-- 1 files changed, 10 insertions(+), 2 deletions(-) diff --git a/src/ipconfig.c b/src/ipconfig.c index 690b51e..b5dc98f 100644 --- a/src/ipconfig.c +++ b/src/ipconfig.c @@ -915,6 +915,9 @@ struct connman_ipconfig *connman_ipconfig_create(int index, */

[PATCH memleak service 2/3] memoryleak: ipconfig was not unreferenced properly

2011-01-05 Thread Jukka Rissanen
The service creates ipconfig and then enables it which means that ref count goes to 2. At some point it then disables ipconfig but does not do unref which means there is a memory leak as ref count never goes to 0. --- src/service.c | 40 1 files changed,

[PATCH memleak service 3/3] memoryleak: IPv6 gateway was not freed

2011-01-05 Thread Jukka Rissanen
--- src/connection.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/src/connection.c b/src/connection.c index bfd19b5..789a242 100644 --- a/src/connection.c +++ b/src/connection.c @@ -221,6 +221,7 @@ static int remove_gateway(struct gateway_data *data)

[PATCH autoconf v3 01/12] ipconfig: Remove unnecessary null checks.

2011-01-07 Thread Jukka Rissanen
--- src/network.c | 11 ++- 1 files changed, 2 insertions(+), 9 deletions(-) diff --git a/src/network.c b/src/network.c index 3130f7c..18e3099 100644 --- a/src/network.c +++ b/src/network.c @@ -745,15 +745,8 @@ static gboolean set_connected(gpointer user_data) DBG(service %p

[PATCH autoconf v3 03/12] ipconfig: Default method is auto for IPv6

2011-01-07 Thread Jukka Rissanen
--- src/ipconfig.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/ipconfig.c b/src/ipconfig.c index 3610d46..7a14c42 100644 --- a/src/ipconfig.c +++ b/src/ipconfig.c @@ -852,7 +852,7 @@ static struct connman_ipconfig *create_ipv6config(int index)

[PATCH autoconf v3 05/12] ipv6: Do not set the method as it is set when ipconfig is created

2011-01-07 Thread Jukka Rissanen
--- src/service.c |3 --- 1 files changed, 0 insertions(+), 3 deletions(-) diff --git a/src/service.c b/src/service.c index 0002609..9338ca1 100644 --- a/src/service.c +++ b/src/service.c @@ -3830,9 +3830,6 @@ static void setup_ip6config(struct connman_service *service, int index)

[PATCH autoconf v3 06/12] ipv6: Clear the IPv6 address if that address is removed from system

2011-01-07 Thread Jukka Rissanen
--- src/ipconfig.c |9 + 1 files changed, 9 insertions(+), 0 deletions(-) diff --git a/src/ipconfig.c b/src/ipconfig.c index 7a14c42..2c0ede6 100644 --- a/src/ipconfig.c +++ b/src/ipconfig.c @@ -616,6 +616,15 @@ void __connman_ipconfig_deladdr(int index, int family, const char

[PATCH autoconf v3 04/12] ipv6: Test script for setting IPv6 Method

2011-01-07 Thread Jukka Rissanen
--- test/set-ipv6-method | 33 + 1 files changed, 33 insertions(+), 0 deletions(-) create mode 100755 test/set-ipv6-method diff --git a/test/set-ipv6-method b/test/set-ipv6-method new file mode 100755 index 000..569e887 --- /dev/null +++

[PATCH autoconf v3 08/12] ipconfig: Removed obsolete code.

2011-01-07 Thread Jukka Rissanen
--- src/ipconfig.c |3 --- 1 files changed, 0 insertions(+), 3 deletions(-) diff --git a/src/ipconfig.c b/src/ipconfig.c index 9781d52..38de5f0 100644 --- a/src/ipconfig.c +++ b/src/ipconfig.c @@ -1616,9 +1616,6 @@ int __connman_ipconfig_set_config(struct connman_ipconfig *ipconfig,

[PATCH autoconf v3 12/12] ipv6: Fix possible values for Method in service API

2011-01-07 Thread Jukka Rissanen
--- doc/service-api.txt |4 +--- 1 files changed, 1 insertions(+), 3 deletions(-) diff --git a/doc/service-api.txt b/doc/service-api.txt index aaddbfb..4a8a490 100644 --- a/doc/service-api.txt +++ b/doc/service-api.txt @@ -364,15 +364,13 @@ Propertiesstring State [readonly]

[PATCH autoconf v3 11/12] ipv6: Do not disconnect IPv4 if IPv6 method changes.

2011-01-07 Thread Jukka Rissanen
--- src/service.c | 49 - 1 files changed, 24 insertions(+), 25 deletions(-) diff --git a/src/service.c b/src/service.c index 01e52f2..db7f85e 100644 --- a/src/service.c +++ b/src/service.c @@ -2041,7 +2041,7 @@ static DBusMessage

[PATCH autoconf v4 4/5] ipv6: Set ipconfig method correctly for IPv4 and IPv6 config

2011-01-10 Thread Jukka Rissanen
--- src/ipconfig.c | 77 ++- 1 files changed, 75 insertions(+), 2 deletions(-) diff --git a/src/ipconfig.c b/src/ipconfig.c index f1533e0..49bc349 100644 --- a/src/ipconfig.c +++ b/src/ipconfig.c @@ -23,6 +23,7 @@ #include config.h #endif

[PATCH autoconf v4 1/5] ipv6: Test script for setting IPv6 Method

2011-01-10 Thread Jukka Rissanen
--- test/set-ipv6-method | 33 + 1 files changed, 33 insertions(+), 0 deletions(-) create mode 100755 test/set-ipv6-method diff --git a/test/set-ipv6-method b/test/set-ipv6-method new file mode 100755 index 000..274e89b --- /dev/null +++

[PATCH autoconf v4 5/5] ipconfig: Restore original IPv6 interface status when connman quits.

2011-01-10 Thread Jukka Rissanen
--- src/ipconfig.c | 36 1 files changed, 36 insertions(+), 0 deletions(-) diff --git a/src/ipconfig.c b/src/ipconfig.c index 49bc349..7ecd7e7 100644 --- a/src/ipconfig.c +++ b/src/ipconfig.c @@ -77,6 +77,8 @@ struct connman_ipdevice { struct

[PATCH autoconf v4 2/5] ipv4: Renamed set-ip-method to be consistent with IPv6 script

2011-01-10 Thread Jukka Rissanen
--- test/set-ip-method | 34 -- test/set-ipv4-method | 34 ++ 2 files changed, 34 insertions(+), 34 deletions(-) delete mode 100755 test/set-ip-method create mode 100755 test/set-ipv4-method diff --git a/test/set-ip-method

[PATCH ipv6 v1 01/14] ipconfig: Clear the ipaddress pointers when address is deleted.

2011-01-24 Thread Jukka Rissanen
--- src/ipconfig.c |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/src/ipconfig.c b/src/ipconfig.c index 6ef39c5..bd664f3 100644 --- a/src/ipconfig.c +++ b/src/ipconfig.c @@ -682,7 +682,8 @@ void __connman_ipconfig_deladdr(int index, int family, const char *label,

[PATCH ipv6 v1 00/14] Support IPv6 only networks

2011-01-24 Thread Jukka Rissanen
from todo list as the most important stuff is now implemented. From these patches the #01, #02 and #03 and also perhaps #04 are independent. The other ones should be commited in one go. Regards, Jukka Jukka Rissanen (14): ipconfig: Clear the ipaddress pointers when address is deleted

[PATCH ipv6 v1 04/14] service: Split service state to IPv4 and IPv6 parts.

2011-01-24 Thread Jukka Rissanen
--- src/connection.c |6 +- src/connman.h|3 +- src/location.c |3 +- src/network.c| 24 +++-- src/provider.c | 27 +++-- src/service.c| 335 +++-- 6 files changed, 313 insertions(+), 85 deletions(-) diff --git

[PATCH ipv6 v1 05/14] ipconfig: Enable or disable IPv6 when loading the saved service.

2011-01-24 Thread Jukka Rissanen
--- src/ipconfig.c |8 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/src/ipconfig.c b/src/ipconfig.c index 4d9b30f..0627b5b 100644 --- a/src/ipconfig.c +++ b/src/ipconfig.c @@ -1778,6 +1778,14 @@ int __connman_ipconfig_load(struct connman_ipconfig *ipconfig,

[PATCH ipv6 v1 06/14] service: Only disconnect the service if both IPv4 and IPv6 states agree.

2011-01-24 Thread Jukka Rissanen
--- src/service.c | 17 + 1 files changed, 13 insertions(+), 4 deletions(-) diff --git a/src/service.c b/src/service.c index 98f824b..09c6913 100644 --- a/src/service.c +++ b/src/service.c @@ -107,6 +107,7 @@ struct connman_service { char **proxies; char

[PATCH ipv6 v1 09/14] service: Set service state correctly when ipconfig is cleared.

2011-01-24 Thread Jukka Rissanen
--- src/network.c | 11 +-- 1 files changed, 9 insertions(+), 2 deletions(-) diff --git a/src/network.c b/src/network.c index d21f7b6..f1a6e38 100644 --- a/src/network.c +++ b/src/network.c @@ -1057,12 +1057,14 @@ int __connman_network_clear_ipconfig(struct connman_network *network,

[PATCH ipv6 v1 11/14] service: Check service state properly if user changes method.

2011-01-24 Thread Jukka Rissanen
--- src/service.c | 30 -- 1 files changed, 28 insertions(+), 2 deletions(-) diff --git a/src/service.c b/src/service.c index b775d44..38f8f2f 100644 --- a/src/service.c +++ b/src/service.c @@ -2203,6 +2203,9 @@ static DBusMessage *set_property(DBusConnection *conn,

[PATCH ipv6 v1 12/14] service: Disable IPv4 when address is released.

2011-01-24 Thread Jukka Rissanen
--- src/service.c |8 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/src/service.c b/src/service.c index 38f8f2f..0d38e66 100644 --- a/src/service.c +++ b/src/service.c @@ -4076,6 +4076,14 @@ static void service_ip_release(struct connman_ipconfig *ipconfig)

[PATCH ipv6 v1 10/14] service: IPv6 autoconf will change the service state.

2011-01-24 Thread Jukka Rissanen
--- src/service.c | 24 1 files changed, 24 insertions(+), 0 deletions(-) diff --git a/src/service.c b/src/service.c index 09c6913..b775d44 100644 --- a/src/service.c +++ b/src/service.c @@ -4014,18 +4014,42 @@ static void service_lower_down(struct connman_ipconfig

[PATCH ipv6 v1 02/14] ipv6: Add property for IPv6 nameserver

2011-01-24 Thread Jukka Rissanen
--- include/property.h |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/include/property.h b/include/property.h index e18e1e9..487a170 100644 --- a/include/property.h +++ b/include/property.h @@ -57,6 +57,7 @@ enum connman_property_id {

[PATCH ipv6 v1 14/14] todo: Remove IPv6 enhancements as they are implemented.

2011-01-24 Thread Jukka Rissanen
- - Priority: High - Complexity: C8 - Owner: Jukka Rissanen jukka.rissa...@nokia.com - - Support IPv6 only networks so that system can go online even if - there is no IPv4 address. Also support more than one IPv6 address - in one device so that the addresses are reported correctly via - dbus

[PATCH ipv6 v1 08/14] service: Set service state correctly when network is disconnected.

2011-01-24 Thread Jukka Rissanen
--- src/network.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/network.c b/src/network.c index 0d620a2..d21f7b6 100644 --- a/src/network.c +++ b/src/network.c @@ -844,8 +844,8 @@ static gboolean set_connected(gpointer user_data) service =

[PATCH] service: Added a script for toggling AutoConnect flag.

2011-01-25 Thread Jukka Rissanen
--- A simple script for setting and getting the service auto connect flag. test/set-autoconnect | 21 + 1 files changed, 21 insertions(+), 0 deletions(-) create mode 100755 test/set-autoconnect diff --git a/test/set-autoconnect b/test/set-autoconnect new file mode 100755

[PATCH ipv6 v2 00/15] Support IPv6 only networks

2011-02-08 Thread Jukka Rissanen
testing. Anyway, this route problem should not affect this patchset. The v2 patchset adds additional patch #14 which was needed because of reworking of patches #4 and #9. Regards, Jukka Jukka Rissanen (15): ipconfig: Clear the ipaddress pointers when address is deleted. ipv6: Add property

[PATCH ipv6 v2 01/15] ipconfig: Clear the ipaddress pointers when address is deleted.

2011-02-08 Thread Jukka Rissanen
--- src/ipconfig.c |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/src/ipconfig.c b/src/ipconfig.c index 6ef39c5..bd664f3 100644 --- a/src/ipconfig.c +++ b/src/ipconfig.c @@ -682,7 +682,8 @@ void __connman_ipconfig_deladdr(int index, int family, const char *label,

[PATCH ipv6 v2 05/15] ipconfig: Enable or disable IPv6 when loading the saved service.

2011-02-08 Thread Jukka Rissanen
--- src/ipconfig.c |8 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/src/ipconfig.c b/src/ipconfig.c index 4d9b30f..0627b5b 100644 --- a/src/ipconfig.c +++ b/src/ipconfig.c @@ -1778,6 +1778,14 @@ int __connman_ipconfig_load(struct connman_ipconfig *ipconfig,

[PATCH ipv6 v2 03/15] ipconfig: Added helper function that returns the config type.

2011-02-08 Thread Jukka Rissanen
--- src/connman.h |2 ++ src/ipconfig.c |6 ++ 2 files changed, 8 insertions(+), 0 deletions(-) diff --git a/src/connman.h b/src/connman.h index 992d533..7f18ff4 100644 --- a/src/connman.h +++ b/src/connman.h @@ -218,6 +218,8 @@ void __connman_ipconfig_delroute(int index, int

[PATCH ipv6 v2 02/15] ipv6: Add property for IPv6 nameserver

2011-02-08 Thread Jukka Rissanen
--- include/property.h |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/include/property.h b/include/property.h index e18e1e9..487a170 100644 --- a/include/property.h +++ b/include/property.h @@ -57,6 +57,7 @@ enum connman_property_id {

[PATCH ipv6 v2 07/15] network: Enable IPv6 autoconf to change the service state to ready.

2011-02-08 Thread Jukka Rissanen
--- src/network.c | 35 +++ 1 files changed, 35 insertions(+), 0 deletions(-) diff --git a/src/network.c b/src/network.c index c3febd3..a338a58 100644 --- a/src/network.c +++ b/src/network.c @@ -768,6 +768,37 @@ static int manual_ipv6_set(struct connman_network

[PATCH ipv6 v2 06/15] service: Only disconnect the service if both IPv4 and IPv6 states agree.

2011-02-08 Thread Jukka Rissanen
--- src/service.c | 17 + 1 files changed, 13 insertions(+), 4 deletions(-) diff --git a/src/service.c b/src/service.c index c27431c..89f7b4d 100644 --- a/src/service.c +++ b/src/service.c @@ -3245,6 +3245,7 @@ int __connman_service_indicate_state(struct connman_service

[PATCH ipv6 v2 04/15] service: Split service state to IPv4 and IPv6 parts.

2011-02-08 Thread Jukka Rissanen
--- src/connection.c |6 +- src/connman.h|3 +- src/location.c |3 +- src/network.c| 24 +++-- src/provider.c | 27 +++-- src/service.c| 309 +- 6 files changed, 300 insertions(+), 72 deletions(-) diff --git

[PATCH ipv6 v2 09/15] network: Set service state correctly when ipconfig is cleared.

2011-02-08 Thread Jukka Rissanen
--- src/network.c |9 - 1 files changed, 8 insertions(+), 1 deletions(-) diff --git a/src/network.c b/src/network.c index c59a091..ec7666f 100644 --- a/src/network.c +++ b/src/network.c @@ -1094,12 +1094,14 @@ int __connman_network_clear_ipconfig(struct connman_network *network, {

[PATCH ipv6 v2 10/15] service: IPv6 autoconf will change the service state.

2011-02-08 Thread Jukka Rissanen
--- src/service.c | 28 1 files changed, 28 insertions(+), 0 deletions(-) diff --git a/src/service.c b/src/service.c index 89f7b4d..28a8f6a 100644 --- a/src/service.c +++ b/src/service.c @@ -4129,18 +4129,46 @@ static void service_lower_down(struct connman_ipconfig

[PATCH ipv6 v2 11/15] service: Check service state properly if user changes method.

2011-02-08 Thread Jukka Rissanen
--- src/service.c | 65 +++-- 1 files changed, 49 insertions(+), 16 deletions(-) diff --git a/src/service.c b/src/service.c index 28a8f6a..2dff83a 100644 --- a/src/service.c +++ b/src/service.c @@ -2012,6 +2012,49 @@ error: return

[PATCH ipv6 v2 13/15] ipconfig: Enable ipconfig if loading autoconfigurable IPv6 config.

2011-02-08 Thread Jukka Rissanen
--- src/ipconfig.c | 15 ++- 1 files changed, 14 insertions(+), 1 deletions(-) diff --git a/src/ipconfig.c b/src/ipconfig.c index 0627b5b..1fb8281 100644 --- a/src/ipconfig.c +++ b/src/ipconfig.c @@ -1782,8 +1782,21 @@ int __connman_ipconfig_load(struct connman_ipconfig *ipconfig,

[PATCH ipv6 v2 12/15] service: Change IPv4 state when address is released.

2011-02-08 Thread Jukka Rissanen
--- src/service.c |6 ++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/src/service.c b/src/service.c index 2dff83a..ff20e42 100644 --- a/src/service.c +++ b/src/service.c @@ -4202,6 +4202,12 @@ static void service_ip_release(struct connman_ipconfig *ipconfig)

[PATCH ipv6 v2 14/15] service: Do not change state if combined state does not change.

2011-02-08 Thread Jukka Rissanen
--- src/service.c |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/src/service.c b/src/service.c index ff20e42..a5ade8d 100644 --- a/src/service.c +++ b/src/service.c @@ -3344,6 +3344,9 @@ int __connman_service_indicate_state(struct connman_service *service,

[PATCH ipv6 v3 00/12] Support IPv6 only networks

2011-02-10 Thread Jukka Rissanen
Hi Samuel, here is the v3 of the IPv6 only patchset. Following changes were done compared to v2: #4: merged patch #14 from v2 #6: removed this patch as it was useless #7: patch #8 from v2 merged, fixed also line len #11: changed the func name Regards, Jukka Jukka Rissanen (12): ipconfig

[PATCH ipv6 v3 03/12] ipconfig: Added helper function that returns the config type.

2011-02-10 Thread Jukka Rissanen
--- src/connman.h |2 ++ src/ipconfig.c |6 ++ 2 files changed, 8 insertions(+), 0 deletions(-) diff --git a/src/connman.h b/src/connman.h index 992d533..7f18ff4 100644 --- a/src/connman.h +++ b/src/connman.h @@ -218,6 +218,8 @@ void __connman_ipconfig_delroute(int index, int

[PATCH ipv6 v3 01/12] ipconfig: Clear the ipaddress pointers when address is deleted.

2011-02-10 Thread Jukka Rissanen
--- src/ipconfig.c |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/src/ipconfig.c b/src/ipconfig.c index 6ef39c5..bd664f3 100644 --- a/src/ipconfig.c +++ b/src/ipconfig.c @@ -682,7 +682,8 @@ void __connman_ipconfig_deladdr(int index, int family, const char *label,

[PATCH ipv6 v3 02/12] ipv6: Add property for IPv6 nameserver

2011-02-10 Thread Jukka Rissanen
--- include/property.h |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/include/property.h b/include/property.h index e18e1e9..487a170 100644 --- a/include/property.h +++ b/include/property.h @@ -57,6 +57,7 @@ enum connman_property_id {

[PATCH ipv6 v3 05/12] ipconfig: Enable or disable IPv6 when loading the saved service.

2011-02-10 Thread Jukka Rissanen
--- src/ipconfig.c |8 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/src/ipconfig.c b/src/ipconfig.c index 4d9b30f..0627b5b 100644 --- a/src/ipconfig.c +++ b/src/ipconfig.c @@ -1778,6 +1778,14 @@ int __connman_ipconfig_load(struct connman_ipconfig *ipconfig,

[PATCH ipv6 v3 06/12] network: Enable IPv6 autoconf to change the service state to ready.

2011-02-10 Thread Jukka Rissanen
--- src/network.c | 43 +-- 1 files changed, 41 insertions(+), 2 deletions(-) diff --git a/src/network.c b/src/network.c index c3febd3..7a4d931 100644 --- a/src/network.c +++ b/src/network.c @@ -768,6 +768,37 @@ static int manual_ipv6_set(struct

[PATCH ipv6 v3 07/12] network: Set service state correctly when ipconfig is cleared.

2011-02-10 Thread Jukka Rissanen
--- src/network.c |9 - 1 files changed, 8 insertions(+), 1 deletions(-) diff --git a/src/network.c b/src/network.c index 7a4d931..240da89 100644 --- a/src/network.c +++ b/src/network.c @@ -1094,12 +1094,14 @@ int __connman_network_clear_ipconfig(struct connman_network *network, {

[PATCH ipv6 v3 08/12] service: IPv6 autoconf will change the service state.

2011-02-10 Thread Jukka Rissanen
--- src/service.c | 28 1 files changed, 28 insertions(+), 0 deletions(-) diff --git a/src/service.c b/src/service.c index 5db3bae..1b8e42a 100644 --- a/src/service.c +++ b/src/service.c @@ -4123,18 +4123,46 @@ static void service_lower_down(struct connman_ipconfig

[PATCH ipv6 v3 09/12] service: Check service state properly if user changes method.

2011-02-10 Thread Jukka Rissanen
--- src/service.c | 63 ++-- 1 files changed, 47 insertions(+), 16 deletions(-) diff --git a/src/service.c b/src/service.c index 1b8e42a..07fa7f6 100644 --- a/src/service.c +++ b/src/service.c @@ -2012,6 +2012,49 @@ error: return

[PATCH ipv6 v3 10/12] service: Change IPv4 state when address is released.

2011-02-10 Thread Jukka Rissanen
--- src/service.c |6 ++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/src/service.c b/src/service.c index 07fa7f6..7751dc0 100644 --- a/src/service.c +++ b/src/service.c @@ -4194,6 +4194,12 @@ static void service_ip_release(struct connman_ipconfig *ipconfig)

[PATCH ipv6 v3 12/12] todo: Remove IPv6 enhancements as they are implemented.

2011-02-10 Thread Jukka Rissanen
- - Priority: High - Complexity: C8 - Owner: Jukka Rissanen jukka.rissa...@nokia.com - - Support IPv6 only networks so that system can go online even if - there is no IPv4 address. Also support more than one IPv6 address - in one device so that the addresses are reported correctly via - dbus

[PATCH] network: IPv6 must go through disconnect state before idle.

2011-02-11 Thread Jukka Rissanen
--- Hi Samuel, please apply this patch as without it the system will not go offline. The patch adds DISCONNECT state for IPv6 that should be entered before IDLE state. Eventually the IPv6 disconnection should be handled in connection.c as you pointed out in IRC but that probably needs to wait

  1   2   3   4   5   6   7   8   9   10   >