[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 03/14] ipconfig: Added helper function that returns the config type.

2011-01-24 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 37946f6..12566aa 100644 --- a/src/connman.h +++ b/src/connman.h @@ -220,6 +220,8 @@ void __connman_ipconfig_delroute(int index, int family,

[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 **exclud

[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 *ip

[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 { CONNMAN_PROPERTY_ID_IPV6_ADDR

[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 - - 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 v1 13/14] ipconfig: Enable ipconfig if loading autoconfigurable IPv6 config.

2011-01-24 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 v1 07/14] network: Enable IPv6 autoconf to change the service state to ready.

2011-01-24 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 05ee0c1..0d620a2 100644 --- a/src/network.c +++ b/src/network.c @@ -735,6 +735,37 @@ static int manual_ipv6_set(struct connman_network *

[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 = __connma

[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 i

[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 for

[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 family,

[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 { CONNMAN_PROPERTY_ID_IPV6_ADDR

[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 *servic

[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 a/sr

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

2011-02-08 Thread Jukka Rissanen
--- src/network.c |6 +- 1 files changed, 5 insertions(+), 1 deletions(-) diff --git a/src/network.c b/src/network.c index a338a58..c59a091 100644 --- a/src/network.c +++ b/src/network.c @@ -877,8 +877,12 @@ static gboolean set_connected(gpointer user_data) service = __con

[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 -EIN

[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 15/15] todo: Remove IPv6 enhancements as they are implemented.

2011-02-08 Thread Jukka Rissanen
- - Priority: High - Complexity: C8 - Owner: Jukka Rissanen - - 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 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, else

[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 family,

[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 { CONNMAN_PROPERTY_ID_IPV6_ADDR

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

2011-02-10 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| 312 +- 6 files changed, 303 insertions(+), 72 deletions(-) diff --git a/sr

[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 connman_n

[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 -EINV

[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 11/12] ipconfig: Enable ipconfig if loading autoconfigurable IPv6 config.

2011-02-10 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 v3 12/12] todo: Remove IPv6 enhancements as they are implemented.

2011-02-10 Thread Jukka Rissanen
- - Priority: High - Complexity: C8 - Owner: Jukka Rissanen - - 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] 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 unti

[PATCH] ipconfig: Enable IPv6 privacy extension for autoconf addresses

2011-02-14 Thread Jukka Rissanen
This is described in RFC 3041 and RFC 4941 --- src/ipconfig.c | 73 1 files changed, 73 insertions(+), 0 deletions(-) diff --git a/src/ipconfig.c b/src/ipconfig.c index f2ddb4e..7473b2f 100644 --- a/src/ipconfig.c +++ b/src/ipconfig.c @@

[PATCH 6to4 v1 4/6] service: Create 6to4 tunnel if enabled.

2011-02-14 Thread Jukka Rissanen
--- src/connman.h |1 + src/ipv4.c|5 + src/service.c | 56 3 files changed, 62 insertions(+), 0 deletions(-) diff --git a/src/connman.h b/src/connman.h index 08bd7a9..24816a0 100644 --- a/src/connman.h +++ b/src/connman.h

[PATCH 6to4 v1 2/6] ipconfig: Add function to return the system address pointer.

2011-02-14 Thread Jukka Rissanen
--- src/connman.h |2 ++ src/ipconfig.c |9 + 2 files changed, 11 insertions(+), 0 deletions(-) diff --git a/src/connman.h b/src/connman.h index 6202db3..5014291 100644 --- a/src/connman.h +++ b/src/connman.h @@ -253,6 +253,8 @@ void __connman_ipconfig_set_element_ipv6_gateway(

[PATCH 6to4 v1 5/6] test: Add support for 6to4 tunnel status printing.

2011-02-14 Thread Jukka Rissanen
--- test/list-services |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/test/list-services b/test/list-services index 3ae6a4d..20295b1 100755 --- a/test/list-services +++ b/test/list-services @@ -50,7 +50,7 @@ for path in properties["Services"]: val

[PATCH 6to4 v1 0/6] Create 6to4 tunnel automatically if enabled

2011-02-14 Thread Jukka Rissanen
Hi, the following patches create 6to4 tunnel automatically if enabled for a given service, IPv6 is enabled and device has public IP address. Regards, Jukka Jukka Rissanen (6): doc: Add comment about 6to4 tunnelling. ipconfig: Add function to return the system address pointer. 6to4: Add

[PATCH 6to4 v1 3/6] 6to4: Add 6to4 tunnel support.

2011-02-14 Thread Jukka Rissanen
--- Makefile.am |2 +- src/6to4.c| 569 + src/connman.h |3 + 3 files changed, 573 insertions(+), 1 deletions(-) create mode 100644 src/6to4.c diff --git a/Makefile.am b/Makefile.am index 144fcc5..8f13f56 100644 --- a/Makefil

[PATCH 6to4 v1 6/6] test: Add support for enabling/disabling 6to4 tunnel.

2011-02-14 Thread Jukka Rissanen
--- test/test-connman | 28 1 files changed, 28 insertions(+), 0 deletions(-) diff --git a/test/test-connman b/test/test-connman index c0a462d..d2445c7 100755 --- a/test/test-connman +++ b/test/test-connman @@ -24,6 +24,7 @@ if len(sys.argv) < 2: print " en

[PATCH 6to4 v1 1/6] doc: Add comment about 6to4 tunnelling.

2011-02-14 Thread Jukka Rissanen
--- doc/service-api.txt |9 + 1 files changed, 9 insertions(+), 0 deletions(-) diff --git a/doc/service-api.txt b/doc/service-api.txt index b3e758e..35e03a6 100644 --- a/doc/service-api.txt +++ b/doc/service-api.txt @@ -386,6 +386,15 @@ Properties string State [readonly]

[PATCH v2] ipconfig: Enable IPv6 privacy extension for autoconf addresses.

2011-02-15 Thread Jukka Rissanen
This is described in RFC 3041 and RFC 4941 --- src/ipconfig.c | 64 1 files changed, 64 insertions(+), 0 deletions(-) diff --git a/src/ipconfig.c b/src/ipconfig.c index 1fb8281..f6af4c4 100644 --- a/src/ipconfig.c +++ b/src/ipconfig.c @@

[PATCH] ipconfig: Never return or set system wide IPv6 status value.

2011-02-15 Thread Jukka Rissanen
--- src/ipconfig.c | 18 +- 1 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/ipconfig.c b/src/ipconfig.c index 1fb8281..f8ca414 100644 --- a/src/ipconfig.c +++ b/src/ipconfig.c @@ -299,13 +299,13 @@ static gboolean get_ipv6_state(gchar *ifname) int disab

[PATCH v3] ipconfig: Enable IPv6 privacy extension for autoconf addresses.

2011-02-15 Thread Jukka Rissanen
This is described in RFC 3041 and RFC 4941 --- src/ipconfig.c | 66 1 files changed, 66 insertions(+), 0 deletions(-) diff --git a/src/ipconfig.c b/src/ipconfig.c index 1fb8281..0f676d3 100644 --- a/src/ipconfig.c +++ b/src/ipconfig.c @@

Re: [PATCH v3] ipconfig: Enable IPv6 privacy extension for autoconf addresses.

2011-02-15 Thread Jukka Rissanen
Hi David, > ... but while ConnMan is driving the device we *always* use this horrid > 'privacy' mode when IPv6 is enabled? What kind of problems there is with the privacy mode? Regards, Jukka ___ connman mailing list connman@connman.net http://lists.c

Re: [PATCH v3] ipconfig: Enable IPv6 privacy extension for autoconf addresses.

2011-02-16 Thread Jukka Rissanen
Hi David, On 16 February 2011 11:10, David Woodhouse wrote: > If you want to support this, it *needs* to be a configurable option in > ConnMan. And I believe it ought to default to 'off'. Sure, I am fine with that. I can prepare a patch that makes it configurable, no problem. Regards, Jukka ___

[PATCH] ipconfig: Enable IPv6 properly when loading and if method is AUTO or MANUAL.

2011-02-16 Thread Jukka Rissanen
--- Hi, This fixes the issue when ipconfig IPv6 method is AUTO and config is loaded during connman startup, now depending on timing it is possible that IPv4 address is not loaded at all. This can happen easily for WLAN connections, ethernet connections will probably work ok without the patch. The

[PATCH] ipconfig: Make sure IPv6 is enabled/disabled in autoconfig if IPv6 ipconfig is enabled/disabled.

2011-02-16 Thread Jukka Rissanen
This is done so that if service is disconnected, the routes need to be cleared and the IPv6 state can stay in IDLE. That can be done easiest by disabling IPv6 for that interface. When service is connected, the IPv6 is enabled again. --- src/ipconfig.c | 61 ++-

[PATCH] network: Obsolete parameter removed from autoconf_ipv6_set()

2011-02-16 Thread Jukka Rissanen
--- Hi, autoconf_ipv6_set() has obsolete parameter that is not used and can be removed. Regards, Jukka src/network.c |7 +++ 1 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/network.c b/src/network.c index a8ebb47..adeba79 100644 --- a/src/network.c +++ b/src/network.

[PATCH v2] ipconfig: Toggle interface IPv6 status if IPv6 ipconfig is enabled or disabled.

2011-02-17 Thread Jukka Rissanen
This is done so that if service is disconnected, the kernel created autoconf routes need to be cleared also. That can be done easiest by disabling IPv6 for that interface. The disabling of IPv6 is only done for autoconfigured interfaces. When service is connected, the IPv6 is enabled for the used i

[PATCH privacy v2 0/3] Enable/disable IPv6 privacy extension

2011-02-17 Thread Jukka Rissanen
mode immediately, it seems to require that interface goes down before activation. Same thing happens if privacy mode is disabled, the temporary addresses do not disappear until the interface is taken down. At least this was happening in my test system with kernel 2.6.32. Regards, Jukka Jukka

[PATCH privacy v2 2/3] ipconfig: Enable IPv6 privacy extension for autoconf addresses.

2011-02-17 Thread Jukka Rissanen
--- src/ipconfig.c | 113 ++-- 1 files changed, 109 insertions(+), 4 deletions(-) diff --git a/src/ipconfig.c b/src/ipconfig.c index 1fb8281..481133b 100644 --- a/src/ipconfig.c +++ b/src/ipconfig.c @@ -51,6 +51,8 @@ struct connman_ipconfig {

[PATCH privacy v2 3/3] test: Enable or disable IPv6 privacy extension.

2011-02-17 Thread Jukka Rissanen
--- test/set-ipv6-method | 18 +++--- 1 files changed, 11 insertions(+), 7 deletions(-) diff --git a/test/set-ipv6-method b/test/set-ipv6-method index 274e89b..c0b251e 100755 --- a/test/set-ipv6-method +++ b/test/set-ipv6-method @@ -4,7 +4,7 @@ import sys import dbus def print_u

[PATCH privacy v2 1/3] doc: Add description about IPv6 privacy setting.

2011-02-17 Thread Jukka Rissanen
--- doc/service-api.txt | 18 ++ 1 files changed, 18 insertions(+), 0 deletions(-) diff --git a/doc/service-api.txt b/doc/service-api.txt index b3e758e..55c5b6e 100644 --- a/doc/service-api.txt +++ b/doc/service-api.txt @@ -375,6 +375,24 @@ Properties string State [readonly]

Re: Memory Leaks When Using Statistics (was Re: [PATCH 1/1]: Fix Memory-map and Double-free Errors in Statistics Handling (was Re: Connman-0.67 Crashes and/or Hangs on Start-up))

2011-02-17 Thread Jukka Rissanen
Hi Grant, On 17 February 2011 20:10, Grant Erickson wrote: > To isolate the leaks, I systematically eliminated processes from the system > until I was left with: > >    - syslogd >    - klogd >    - wpa_supplicant >    - dbus-daemon >    - connmand > I have run connmand under valgrind and it rep

[PATCH 6to4 v2 0/7] Create 6to4 tunnel automatically if enabled

2011-02-18 Thread Jukka Rissanen
? Regards, Jukka Jukka Rissanen (7): doc: Add comment about 6to4 tunnelling. ipconfig: Add function to return the system address pointer. 6to4: Add 6to4 tunnel support. service: Create 6to4 tunnel if enabled. test: Add support for 6to4 tunnel status printing. test: Add support for enabling

[PATCH 6to4 v2 1/7] doc: Add comment about 6to4 tunnelling.

2011-02-18 Thread Jukka Rissanen
--- doc/service-api.txt |9 + 1 files changed, 9 insertions(+), 0 deletions(-) diff --git a/doc/service-api.txt b/doc/service-api.txt index 9695059..c662aaf 100644 --- a/doc/service-api.txt +++ b/doc/service-api.txt @@ -377,6 +377,15 @@ Properties string State [readonly]

[PATCH 6to4 v2 2/7] ipconfig: Add function to return the system address pointer.

2011-02-18 Thread Jukka Rissanen
--- src/connman.h |2 ++ src/ipconfig.c |9 + 2 files changed, 11 insertions(+), 0 deletions(-) diff --git a/src/connman.h b/src/connman.h index f6521eb..e320014 100644 --- a/src/connman.h +++ b/src/connman.h @@ -262,6 +262,8 @@ void __connman_ipconfig_set_element_ipv6_gateway(

[PATCH 6to4 v2 3/7] 6to4: Add 6to4 tunnel support.

2011-02-18 Thread Jukka Rissanen
--- Makefile.am |2 +- src/6to4.c| 569 + src/connman.h |3 + 3 files changed, 573 insertions(+), 1 deletions(-) create mode 100644 src/6to4.c diff --git a/Makefile.am b/Makefile.am index 144fcc5..8f13f56 100644 --- a/Makefil

[PATCH 6to4 v2 4/7] service: Create 6to4 tunnel if enabled.

2011-02-18 Thread Jukka Rissanen
--- src/connman.h |1 + src/ipv4.c|5 + src/service.c | 56 3 files changed, 62 insertions(+), 0 deletions(-) diff --git a/src/connman.h b/src/connman.h index a8ef170..0d90b6b 100644 --- a/src/connman.h +++ b/src/connman.h

[PATCH 6to4 v2 6/7] test: Add support for enabling/disabling 6to4 tunnel.

2011-02-18 Thread Jukka Rissanen
--- test/test-connman | 28 1 files changed, 28 insertions(+), 0 deletions(-) diff --git a/test/test-connman b/test/test-connman index c0a462d..d2445c7 100755 --- a/test/test-connman +++ b/test/test-connman @@ -24,6 +24,7 @@ if len(sys.argv) < 2: print " en

[PATCH 6to4 v2 5/7] test: Add support for 6to4 tunnel status printing.

2011-02-18 Thread Jukka Rissanen
--- test/list-services |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/test/list-services b/test/list-services index 3ae6a4d..20295b1 100755 --- a/test/list-services +++ b/test/list-services @@ -50,7 +50,7 @@ for path in properties["Services"]: val

[PATCH 6to4 v2 7/7] 6to4: Check the connectivity via tunnel after creating it.

2011-02-18 Thread Jukka Rissanen
--- Makefile.am |8 +- configure.ac |4 + src/6to4.c | 220 ++ 3 files changed, 228 insertions(+), 4 deletions(-) diff --git a/Makefile.am b/Makefile.am index 8f13f56..5d808a6 100644 --- a/Makefile.am +++ b/Makefile.am @@ -79,7 +

[PATCH v2] ipconfig: Enable IPv6 properly when loading config and disable IPv6 properly when connecting service.

2011-02-18 Thread Jukka Rissanen
--- Hi, this sets the IPv6 status correctly by - enabling IPv6 when service config is loaded and method is AUTO or MANUAL - and disabling IPv6 when service is connected and method is OFF Regards, Jukka include/ipconfig.h |1 + src/ipconfig.c | 25 ++--- src/servic

[PATCH ipv6routes v1 1/2] rtnl: Catch IPv6 route netlink messages.

2011-02-18 Thread Jukka Rissanen
--- src/rtnl.c | 122 +++ 1 files changed, 97 insertions(+), 25 deletions(-) diff --git a/src/rtnl.c b/src/rtnl.c index 5b09ca4..42b1632 100644 --- a/src/rtnl.c +++ b/src/rtnl.c @@ -633,7 +633,7 @@ static void process_deladdr(unsigned char

[PATCH ipv6routes v1 0/2] Catch IPv6 default gw messages

2011-02-18 Thread Jukka Rissanen
Hi, here is some preliminary work for IPv6 route handling. The patch catches IPv6 route additions and deletions and updates ipconfig accordingly. Regards, Jukka Jukka Rissanen (2): rtnl: Catch IPv6 route netlink messages. ipconfig: Catch IPv6 default route creation and deletion. src

[PATCH ipv6routes v1 2/2] ipconfig: Catch IPv6 default route creation and deletion.

2011-02-18 Thread Jukka Rissanen
--- src/ipconfig.c | 16 ++-- 1 files changed, 10 insertions(+), 6 deletions(-) diff --git a/src/ipconfig.c b/src/ipconfig.c index 62d3766..59dd987 100644 --- a/src/ipconfig.c +++ b/src/ipconfig.c @@ -720,7 +720,8 @@ void __connman_ipconfig_newroute(int index, int family, unsigned

Re: [PATCH privacy v2 1/3] doc: Add description about IPv6 privacy setting.

2011-02-18 Thread Jukka Rissanen
Hi Marcel & Samuel, On 18 February 2011 22:05, Samuel Ortiz wrote: > Hi Marcel, > > On Fri, Feb 18, 2011 at 11:54:43AM -0800, Marcel Holtmann wrote: >> Hi Samuel, >> >> > > +                 int32 Privacy [readonly] >> > An int16 would have been just fine. >> > >> > >> > > +                      

[PATCH 6to4 v3 0/7] Create 6to4 tunnel automatically if enabled

2011-02-21 Thread Jukka Rissanen
when it provides the same kind of service. The IPv6 address of the host is resolved by async DNS so that mainloop is not blocked. The timeouts I used were 10 sec for DNS query and 2 sec for connection test but these can be tweaked of course. Regards, Jukka Jukka Rissanen (7): doc: Add

[PATCH 6to4 v3 1/7] doc: Add description about 6to4 tunnelling.

2011-02-21 Thread Jukka Rissanen
--- doc/service-api.txt | 11 +++ 1 files changed, 11 insertions(+), 0 deletions(-) diff --git a/doc/service-api.txt b/doc/service-api.txt index 9695059..da06898 100644 --- a/doc/service-api.txt +++ b/doc/service-api.txt @@ -332,6 +332,17 @@ Properties string State [readonly]

[PATCH 6to4 v3 2/7] ipconfig: Add function to return the system address pointer.

2011-02-21 Thread Jukka Rissanen
--- src/connman.h |2 ++ src/ipconfig.c |9 + 2 files changed, 11 insertions(+), 0 deletions(-) diff --git a/src/connman.h b/src/connman.h index f6521eb..e320014 100644 --- a/src/connman.h +++ b/src/connman.h @@ -262,6 +262,8 @@ void __connman_ipconfig_set_element_ipv6_gateway(

[PATCH 6to4 v3 3/7] 6to4: Add 6to4 tunnel support.

2011-02-21 Thread Jukka Rissanen
--- Makefile.am |2 +- src/6to4.c| 569 + src/connman.h |3 + 3 files changed, 573 insertions(+), 1 deletions(-) create mode 100644 src/6to4.c diff --git a/Makefile.am b/Makefile.am index 144fcc5..8f13f56 100644 --- a/Makefil

[PATCH 6to4 v3 5/7] test: Add support for 6to4 tunnel status printing.

2011-02-21 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 k

[PATCH 6to4 v3 4/7] service: Create 6to4 tunnel if enabled.

2011-02-21 Thread Jukka Rissanen
--- src/connman.h |4 ++- src/ipconfig.c | 16 +- src/ipv4.c |5 src/service.c | 61 --- 4 files changed, 80 insertions(+), 6 deletions(-) diff --git a/src/connman.h b/src/connman.h index a8ef170..3d416ca 10064

[PATCH 6to4 v3 6/7] test: Add support for enabling/disabling 6to4 tunnel.

2011-02-21 Thread Jukka Rissanen
--- test/test-connman | 37 + 1 files changed, 37 insertions(+), 0 deletions(-) diff --git a/test/test-connman b/test/test-connman index 9a855fb..c297cf7 100755 --- a/test/test-connman +++ b/test/test-connman @@ -18,6 +18,7 @@ if len(sys.argv) < 2: pr

[PATCH 6to4 v3 7/7] 6to4: Check the connectivity via tunnel after creating it.

2011-02-21 Thread Jukka Rissanen
--- Makefile.am |8 +- configure.ac |4 + src/6to4.c | 220 ++ 3 files changed, 228 insertions(+), 4 deletions(-) diff --git a/Makefile.am b/Makefile.am index 8f13f56..5d808a6 100644 --- a/Makefile.am +++ b/Makefile.am @@ -79,7 +

[PATCH privacy v3 1/3] doc: Add description about IPv6 privacy setting.

2011-02-21 Thread Jukka Rissanen
--- doc/service-api.txt | 20 1 files changed, 20 insertions(+), 0 deletions(-) diff --git a/doc/service-api.txt b/doc/service-api.txt index 9695059..65554a2 100644 --- a/doc/service-api.txt +++ b/doc/service-api.txt @@ -366,6 +366,26 @@ Properties string State [readonly]

[PATCH privacy v3 0/3] Enable/disable IPv6 privacy extension

2011-02-21 Thread Jukka Rissanen
test system with kernel 2.6.32. Regards, Jukka Jukka Rissanen (3): doc: Add description about IPv6 privacy setting. ipconfig: Support IPv6 privacy extension for autoconf addresses. test: Enable or disable IPv6 privacy extension. doc/service-api.txt | 20 ++

[PATCH privacy v3 2/3] ipconfig: Support IPv6 privacy extension for autoconf addresses.

2011-02-21 Thread Jukka Rissanen
--- src/ipconfig.c | 141 +-- 1 files changed, 135 insertions(+), 6 deletions(-) diff --git a/src/ipconfig.c b/src/ipconfig.c index 6511370..5d4e755 100644 --- a/src/ipconfig.c +++ b/src/ipconfig.c @@ -51,6 +51,8 @@ struct connman_ipconfig {

[PATCH privacy v3 3/3] test: Enable or disable IPv6 privacy extension.

2011-02-21 Thread Jukka Rissanen
--- test/set-ipv6-method | 18 +++--- 1 files changed, 11 insertions(+), 7 deletions(-) diff --git a/test/set-ipv6-method b/test/set-ipv6-method index 274e89b..c0b251e 100755 --- a/test/set-ipv6-method +++ b/test/set-ipv6-method @@ -4,7 +4,7 @@ import sys import dbus def print_u

Re: [RFC v12 1/3] ipconfig: Only save FIXED & MANUAL IP configuraiton

2011-02-22 Thread Jukka Rissanen
Hi Daniel, On 22 February 2011 16:37, Daniel Wagner wrote: > From: Daniel Wagner > @@ -2042,6 +2042,17 @@ int __connman_ipconfig_save(struct connman_ipconfig > *ipconfig, >        g_key_file_set_string(keyfile, identifier, key, method); >        g_free(key); > > +       switch (ipconfig->method

[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
not set in gweb, we are just hoping that the routing in the device forces the check go through tunnel. Regards, Jukka Jukka Rissanen (10): doc: Add description about 6to4 tunnelling. inet: MTU and tunnel setup functions added. inet: Add routines to send IPv6 router solicitation message

[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 @@ int

[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 --- a/Makefil

[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 #include +#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 *i

[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

<    1   2   3   4   5   6   7   8   9   10   >