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

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

[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

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

[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

[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

[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 maratho...@gmail.com 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

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

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

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

[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

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

[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

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

[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

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

[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

[PATCH 6to4 v5 2/9] inet: MTU and tunnel setup functions added.

2011-03-17 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 v5 3/9] inet: Add routines to send IPv6 router solicitation message.

2011-03-17 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 v5 1/9] doc: Add description about 6to4 tunnelling.

2011-03-17 Thread Jukka Rissanen
--- doc/service-api.txt |6 +- 1 files changed, 5 insertions(+), 1 deletions(-) diff --git a/doc/service-api.txt b/doc/service-api.txt index 65554a2..7e87e6e 100644 --- a/doc/service-api.txt +++ b/doc/service-api.txt @@ -347,12 +347,16 @@ Propertiesstring State [readonly]

[PATCH 6to4 v5 5/9] 6to4: Add 6to4 tunnel support.

2011-03-17 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 v5 6/9] 6to4: Check the connectivity via tunnel after creating it.

2011-03-17 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 v5 4/9] gweb: Add support for connecting to IPv6 host.

2011-03-17 Thread Jukka Rissanen
--- gweb/gweb.c | 29 - 1 files changed, 20 insertions(+), 9 deletions(-) diff --git a/gweb/gweb.c b/gweb/gweb.c index f3c8a7e..1bb1c70 100644 --- a/gweb/gweb.c +++ b/gweb/gweb.c @@ -31,6 +31,7 @@ #include string.h #include sys/socket.h #include arpa/inet.h

[PATCH 6to4 v5 7/9] service: Create/remove 6to4 tunnel.

2011-03-17 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 v5 8/9] 6to4: Check if the 6to4 tunnel is active or not.

2011-03-17 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 v5 9/9] service: Return 6to4 tunnel status to dbus caller.

2011-03-17 Thread Jukka Rissanen
--- src/connman.h |3 ++- src/ipconfig.c |9 - src/service.c |3 ++- 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/src/connman.h b/src/connman.h index a4ebbbe..47f3c89 100644 --- a/src/connman.h +++ b/src/connman.h @@ -247,7 +247,8 @@ void

Re: [PATCH 6to4 v5 3/9] inet: Add routines to send IPv6 router solicitation message.

2011-03-17 Thread Jukka Rissanen
Hi Marcel, On 17 March 2011 09:29, Marcel Holtmann mar...@holtmann.org wrote: Hi Jukka, diff --git a/src/inet.c b/src/inet.c index 858d34c..40d8a8d 100644 --- a/src/inet.c +++ b/src/inet.c @@ -4,6 +4,10 @@   *   *  Copyright (C) 2007-2010  Intel Corporation. All rights reserved.   * +

Re: [PATCH 6to4 v5 3/9] inet: Add routines to send IPv6 router solicitation message.

2011-03-18 Thread Jukka Rissanen
Hi Marcel, On 17 March 2011 18:50, Marcel Holtmann mar...@holtmann.org wrote: Hi Jukka, you don't have to go this much over board with this. I just needed to double check by myself that we are GPLv2 compatible before going any further with this patch. Ok, I just wanted to be exact :)

[6to4 v6 0/9] 6to4 tunneling support

2011-03-25 Thread Jukka Rissanen
hoping that the routing in the device forces the check go through tunnel. Regards, Jukka Jukka Rissanen (9): doc: Add description about 6to4 tunnelling. inet: MTU and tunnel setup functions added. inet: Add routines to send IPv6 router solicitation message. gweb: Add support for connecting

[6to4 v6 1/9] doc: Add description about 6to4 tunnelling.

2011-03-25 Thread Jukka Rissanen
--- doc/service-api.txt |6 +- 1 files changed, 5 insertions(+), 1 deletions(-) diff --git a/doc/service-api.txt b/doc/service-api.txt index 65554a2..7e87e6e 100644 --- a/doc/service-api.txt +++ b/doc/service-api.txt @@ -347,12 +347,16 @@ Propertiesstring State [readonly]

[6to4 v6 3/9] inet: Add routines to send IPv6 router solicitation message.

2011-03-25 Thread Jukka Rissanen
IPv6 router solicitation handling is from MIPL project. Original code can be found at git://linux-ipv6.org/gitroot/mipv6-daemon.git and http://www.linux-ipv6.org/gitweb/gitweb.cgi?p=gitroot/mipv6-daemon.git;a=blob;f=src/ndisc.c --- src/connman.h |9 ++ src/inet.c| 313

[6to4 v6 2/9] inet: MTU and tunnel setup functions added.

2011-03-25 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 @@

[6to4 v6 4/9] gweb: Add support for connecting to IPv6 host.

2011-03-25 Thread Jukka Rissanen
--- gweb/gweb.c | 29 - 1 files changed, 20 insertions(+), 9 deletions(-) diff --git a/gweb/gweb.c b/gweb/gweb.c index f3c8a7e..1bb1c70 100644 --- a/gweb/gweb.c +++ b/gweb/gweb.c @@ -31,6 +31,7 @@ #include string.h #include sys/socket.h #include arpa/inet.h

[6to4 v6 5/9] 6to4: Add 6to4 tunnel support.

2011-03-25 Thread Jukka Rissanen
Netlink support routines taken from iproute2 package. Iproute2 source code can be found at git://git.kernel.org/pub/scm/linux/kernel/git/shemminger/iproute2.git --- Makefile.am |2 +- src/6to4.c| 497 + src/connman.h |3 + 3

[6to4 v6 6/9] 6to4: Check the connectivity via tunnel after creating it.

2011-03-25 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 767c866..e6815a0 100644 --- a/src/6to4.c +++ b/src/6to4.c @@ -40,10 +40,15 @@ #include connman.h #include connman/log.h #include

[6to4 v6 7/9] service: Create/remove 6to4 tunnel.

2011-03-25 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 3106c3d..03a2b90 100644 --- a/src/dhcp.c +++ b/src/dhcp.c @@ -73,6 +73,8 @@ static void dhcp_invalid(struct connman_dhcp *dhcp) if (ipconfig

[6to4 v6 8/9] 6to4: Check if the 6to4 tunnel is active or not.

2011-03-25 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 e6815a0..3877bfb 100644 --- a/src/6to4.c +++ b/src/6to4.c @@ -540,3 +540,23 @@ void __connman_6to4_remove(struct connman_ipconfig

[6to4 v6 9/9] service: Return 6to4 tunnel status to dbus caller.

2011-03-25 Thread Jukka Rissanen
--- src/connman.h |3 ++- src/ipconfig.c |9 - src/service.c |3 ++- 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/src/connman.h b/src/connman.h index d466b21..01dca1b 100644 --- a/src/connman.h +++ b/src/connman.h @@ -256,7 +256,8 @@ void

[PATCH ipv6 gw 00/13] ipv6 gw: Fix route and gateway handling for IPv6

2011-06-20 Thread Jukka Rissanen
automagically when IPv6 is disabled. 13 - Mark the IPv6 gateway handling as done Jukka Jukka Rissanen (13): inet: Changed error prints to print the error string. inet: Fixed indentation. service: Fixed indentation. inet: Added support functions for setting and clearing IPv6 gateway

[PATCH ipv6 gw 01/13] inet: Changed error prints to print the error string.

2011-06-20 Thread Jukka Rissanen
--- src/inet.c | 12 1 files changed, 8 insertions(+), 4 deletions(-) diff --git a/src/inet.c b/src/inet.c index e3adb7e..c55af06 100644 --- a/src/inet.c +++ b/src/inet.c @@ -783,7 +783,8 @@ int connman_inet_del_ipv6_network_route(int index, const char *host, close(sk);

[PATCH ipv6 gw 02/13] inet: Fixed indentation.

2011-06-20 Thread Jukka Rissanen
--- src/inet.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/inet.c b/src/inet.c index c55af06..05ead31 100644 --- a/src/inet.c +++ b/src/inet.c @@ -796,7 +796,7 @@ int connman_inet_del_ipv6_host_route(int index, const char *host) int

[PATCH ipv6 gw 06/13] network: Add IPv6 associating state.

2011-06-20 Thread Jukka Rissanen
--- src/network.c |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/src/network.c b/src/network.c index 88b8ad8..1693109 100644 --- a/src/network.c +++ b/src/network.c @@ -657,6 +657,9 @@ int connman_network_set_associating(struct connman_network *network,

[PATCH ipv6 gw 05/13] service: Set and clear IPv6 nameserver addresses properly.

2011-06-20 Thread Jukka Rissanen
--- src/service.c | 56 +--- 1 files changed, 49 insertions(+), 7 deletions(-) diff --git a/src/service.c b/src/service.c index eca4ef2..216fa47 100644 --- a/src/service.c +++ b/src/service.c @@ -26,6 +26,7 @@ #include errno.h #include

[PATCH ipv6 gw 09/13] ipconfig: Added function to remove address from interface.

2011-06-20 Thread Jukka Rissanen
--- src/connman.h |1 + src/ipconfig.c | 30 -- 2 files changed, 29 insertions(+), 2 deletions(-) diff --git a/src/connman.h b/src/connman.h index 7e22b78..9e28837 100644 --- a/src/connman.h +++ b/src/connman.h @@ -249,6 +249,7 @@ enum connman_ipconfig_method

[PATCH ipv6 gw 10/13] network: Clear interface addresses after removing gateway address.

2011-06-20 Thread Jukka Rissanen
--- src/network.c |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/src/network.c b/src/network.c index 4abcb09..0ae77ca 100644 --- a/src/network.c +++ b/src/network.c @@ -1101,6 +1101,9 @@ static gboolean set_connected(gpointer user_data)

[PATCH ipv6 gw 11/13] ipconfig: Added function to enable IPv6.

2011-06-20 Thread Jukka Rissanen
--- include/ipconfig.h |1 + src/ipconfig.c |8 2 files changed, 9 insertions(+), 0 deletions(-) diff --git a/include/ipconfig.h b/include/ipconfig.h index 8980a78..34463eb 100644 --- a/include/ipconfig.h +++ b/include/ipconfig.h @@ -99,6 +99,7 @@ void

[PATCH ipv6 gw 12/13] network: Clear IPv6 autoconfigured routes when disconnected.

2011-06-20 Thread Jukka Rissanen
--- src/network.c | 11 +++ 1 files changed, 11 insertions(+), 0 deletions(-) diff --git a/src/network.c b/src/network.c index 0ae77ca..ac7bd07 100644 --- a/src/network.c +++ b/src/network.c @@ -1104,6 +1104,17 @@ static gboolean set_connected(gpointer user_data)

[PATCH ipv6 gw 13/13] TODO: IPv6 gateway handling done.

2011-06-20 Thread Jukka Rissanen
--- TODO | 10 -- 1 files changed, 0 insertions(+), 10 deletions(-) diff --git a/TODO b/TODO index 7420ba0..8937041 100644 --- a/TODO +++ b/TODO @@ -64,16 +64,6 @@ Core not all driver (especially WiFi ones) implement runtime PM hooks. -- IPv6 gateway handling - - Priority:

Re: [PATCH ipv6 gw 10/13] network: Clear interface addresses after removing gateway address.

2011-06-22 Thread Jukka Rissanen
Hi Samuel, On 06/21/2011 07:11 PM, Samuel Ortiz wrote: Hi Jukka, On Mon, Jun 20, 2011 at 02:05:26PM +0300, Jukka Rissanen wrote: --- src/network.c |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/src/network.c b/src/network.c index 4abcb09..0ae77ca 100644

Re: [PATCH ipv6 gw 07/13] connection: Separate IPv4 and IPv6 gateway and routing handling.

2011-06-22 Thread Jukka Rissanen
Hi Samuel, On 06/21/2011 07:10 PM, Samuel Ortiz wrote: Hi Jukka, On Mon, Jun 20, 2011 at 02:05:23PM +0300, Jukka Rissanen wrote: --- include/ipconfig.h |1 + src/connection.c | 495 src/connman.h |9 +- src/ipconfig.c

[PATCH ipv6 gw v2 05/13] service: Set and clear IPv6 nameserver addresses properly.

2011-06-22 Thread Jukka Rissanen
--- src/service.c | 56 +--- 1 files changed, 49 insertions(+), 7 deletions(-) diff --git a/src/service.c b/src/service.c index 3f6df36..7f55bbf 100644 --- a/src/service.c +++ b/src/service.c @@ -26,6 +26,7 @@ #include errno.h #include

[PATCH ipv6 gw v2 04/13] inet: Added support functions for setting and clearing IPv6 gateway address.

2011-06-22 Thread Jukka Rissanen
--- include/inet.h |2 + src/inet.c | 92 2 files changed, 94 insertions(+), 0 deletions(-) diff --git a/include/inet.h b/include/inet.h index 19f4455..1aa23ea 100644 --- a/include/inet.h +++ b/include/inet.h @@ -69,6 +69,8 @@

[PATCH ipv6 gw v2 06/13] network: Add IPv6 associating state.

2011-06-22 Thread Jukka Rissanen
--- src/network.c |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/src/network.c b/src/network.c index 88b8ad8..1693109 100644 --- a/src/network.c +++ b/src/network.c @@ -657,6 +657,9 @@ int connman_network_set_associating(struct connman_network *network,

[PATCH ipv6 gw v2 08/13] network: Set manual IPv6 state and gateway.

2011-06-22 Thread Jukka Rissanen
--- src/network.c | 23 +++ 1 files changed, 19 insertions(+), 4 deletions(-) diff --git a/src/network.c b/src/network.c index acc374f..4abcb09 100644 --- a/src/network.c +++ b/src/network.c @@ -960,6 +960,8 @@ static int manual_ipv6_set(struct connman_network *network,

[PATCH ipv6 gw v2 07/13] connection: Separate IPv4 and IPv6 gateway and routing handling.

2011-06-22 Thread Jukka Rissanen
--- include/ipconfig.h |1 + src/connection.c | 495 +++- src/connman.h |9 +- src/ipconfig.c | 18 +- src/network.c |3 +- 5 files changed, 393 insertions(+), 133 deletions(-) diff --git a/include/ipconfig.h

[PATCH ipv6 gw v2 10/13] network: Clear interface addresses after removing gateway address.

2011-06-22 Thread Jukka Rissanen
The reason for this patch is that service disconnect code path is different from service change code path. In disconnect, the __connman_ipconfig_address_remove() is called which clears the addresses from interface. When changing from one service to another, the function

[PATCH ipv6 gw v2 11/13] ipconfig: Added function to enable IPv6.

2011-06-22 Thread Jukka Rissanen
--- include/ipconfig.h |1 + src/ipconfig.c |8 2 files changed, 9 insertions(+), 0 deletions(-) diff --git a/include/ipconfig.h b/include/ipconfig.h index 8980a78..34463eb 100644 --- a/include/ipconfig.h +++ b/include/ipconfig.h @@ -99,6 +99,7 @@ void

[PATCH ipv6 gw v2 09/13] ipconfig: Add function to remove address from interface.

2011-06-22 Thread Jukka Rissanen
The new function removes the address from interface but does not touch internal data structures. --- src/connman.h |1 + src/ipconfig.c | 30 -- 2 files changed, 29 insertions(+), 2 deletions(-) diff --git a/src/connman.h b/src/connman.h index da8323d..948a285

[PATCH ipv6 gw v2 12/13] network: Clear IPv6 autoconfigured routes when disconnected.

2011-06-22 Thread Jukka Rissanen
--- src/network.c | 11 +++ 1 files changed, 11 insertions(+), 0 deletions(-) diff --git a/src/network.c b/src/network.c index 0ae77ca..ac7bd07 100644 --- a/src/network.c +++ b/src/network.c @@ -1104,6 +1104,17 @@ static gboolean set_connected(gpointer user_data)

[PATCH ipv6 gw v2 13/13] TODO: IPv6 gateway handling done.

2011-06-22 Thread Jukka Rissanen
--- TODO | 10 -- 1 files changed, 0 insertions(+), 10 deletions(-) diff --git a/TODO b/TODO index e376522..36f8240 100644 --- a/TODO +++ b/TODO @@ -57,16 +57,6 @@ Core not all driver (especially WiFi ones) implement runtime PM hooks. -- IPv6 gateway handling - - Priority:

[PATCH dns cache 0/3] Implement DNS caching

2011-07-04 Thread Jukka Rissanen
Hi, this patchset implements a simple DNS A and record caching based on their TTL. The caching is implemented inside dnsproxy. Following limits are implemented in the cache: - max number of cached entries is currently 256 (in order to not use too much memory, each cache entry is about 100

[PATCH dns cache 1/3] TODO: DNS caching

2011-07-04 Thread Jukka Rissanen
--- TODO |9 - 1 files changed, 0 insertions(+), 9 deletions(-) diff --git a/TODO b/TODO index 36f8240..22078c8 100644 --- a/TODO +++ b/TODO @@ -36,15 +36,6 @@ Core credentials, ConnMan should be able to initiate a WiSPR authentication. -- DNS caching - - Priority: Low -

[PATCH dns cache 3/3] dnsproxy: Fix indentation.

2011-07-04 Thread Jukka Rissanen
--- src/dnsproxy.c |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/dnsproxy.c b/src/dnsproxy.c index a9bab01..1bf5328 100644 --- a/src/dnsproxy.c +++ b/src/dnsproxy.c @@ -306,7 +306,7 @@ static gboolean request_timeout(gpointer user_data)

[PATCH dns cache 2/3] dnsproxy: Implement A and AAAA DNS record caching.

2011-07-04 Thread Jukka Rissanen
--- src/dnsproxy.c | 412 ++- 1 files changed, 404 insertions(+), 8 deletions(-) diff --git a/src/dnsproxy.c b/src/dnsproxy.c index d03b734..a9bab01 100644 --- a/src/dnsproxy.c +++ b/src/dnsproxy.c @@ -90,6 +90,7 @@ struct server_data {

Re: [PATCH dns cache v2 3/3] dnsproxy: Implement A and AAAA DNS record caching.

2011-07-07 Thread Jukka Rissanen
Hi Marcel, On 07/07/2011 08:52 AM, Marcel Holtmann wrote: Hi Jukka, diff --git a/src/dnsproxy.c b/src/dnsproxy.c index 9701343..246a6a2 100644 --- a/src/dnsproxy.c +++ b/src/dnsproxy.c @@ -123,6 +123,52 @@ struct listener_data { guint tcp_listener_watch; }; +struct cache_data { +

[PATCH dns cache v3 0/2] Implement DNS caching

2011-07-07 Thread Jukka Rissanen
server constants (NS_) from resolv.h Regards, Jukka Jukka Rissanen (2): dnsproxy: Implement A and DNS record caching. TODO: DNS caching TODO |9 - src/dnsproxy.c | 708 +++- 2 files changed, 699 insertions(+), 18

[PATCH dns cache v3 1/2] dnsproxy: Implement A and AAAA DNS record caching.

2011-07-07 Thread Jukka Rissanen
--- src/dnsproxy.c | 708 +++- 1 files changed, 699 insertions(+), 9 deletions(-) diff --git a/src/dnsproxy.c b/src/dnsproxy.c index 9701343..37e6b1e 100644 --- a/src/dnsproxy.c +++ b/src/dnsproxy.c @@ -32,6 +32,7 @@ #include sys/types.h

[PATCH dns cache v3 2/2] TODO: DNS caching

2011-07-07 Thread Jukka Rissanen
--- TODO |9 - 1 files changed, 0 insertions(+), 9 deletions(-) diff --git a/TODO b/TODO index 36f8240..22078c8 100644 --- a/TODO +++ b/TODO @@ -36,15 +36,6 @@ Core credentials, ConnMan should be able to initiate a WiSPR authentication. -- DNS caching - - Priority: Low -

[PATCH pre-l2tp/pptp 01/11] provider: NULL pointer check.

2011-07-20 Thread Jukka Rissanen
--- src/provider.c |5 - 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/src/provider.c b/src/provider.c index 9ae62cd..f3b10a0 100644 --- a/src/provider.c +++ b/src/provider.c @@ -879,7 +879,10 @@ int connman_provider_append_route(struct connman_provider *provider,

[PATCH pre-l2tp/pptp 06/11] service: Fix function name as it is static.

2011-07-20 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 c11ae44..dbd0c83 100644 --- a/src/service.c +++ b/src/service.c @@ -3428,7 +3428,7 @@ static void report_error_cb(struct connman_service *service, } }

[PATCH pre-l2tp/pptp 05/11] service: Set the user connect status correctly for VPN.

2011-07-20 Thread Jukka Rissanen
If the userconnect is not set, then informatation about authentication errors cannot be reported by agent API. --- src/service.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/src/service.c b/src/service.c index b2670aa..c11ae44 100644 --- a/src/service.c +++

[PATCH pre-l2tp/pptp 08/11] service: Change the ipconfig state only when needed.

2011-07-20 Thread Jukka Rissanen
We should not try to change the state if the corresponding ipconfig is set to be OFF. What this means that we change the state and combine ipv4 and ipv6 states only if both are active. This patch is needed by provider and the VPN authentication failure case. --- src/service.c | 20

[PATCH pre-l2tp/pptp 10/11] provider: Return existing service path if already connected.

2011-07-20 Thread Jukka Rissanen
--- src/provider.c |9 + 1 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/provider.c b/src/provider.c index f0ede5e..90f145d 100644 --- a/src/provider.c +++ b/src/provider.c @@ -571,11 +571,12 @@ int __connman_provider_create_and_connect(DBusMessage *msg)

[PATCH pre-l2tp/pptp 11/11] connection: Service was not ref counted properly.

2011-07-20 Thread Jukka Rissanen
The reference counting problems were clearly seen with VPN service. --- src/connection.c |6 -- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/connection.c b/src/connection.c index 4f3b3f8..38269d6 100644 --- a/src/connection.c +++ b/src/connection.c @@ -227,6 +227,7

[PATCH l2tp/pptp 00/21] L2TP/PPTP support

2011-07-20 Thread Jukka Rissanen
itself so there are no processes left around. 21 - Mark l2tp and pptp support as done. Regards, Jukka Jukka Rissanen (15): vpn: Add null checks. l2tp: Add l2tp makefile and configure file. pptp: Add pptp makefile and configure file. scripts: Compile libppp-plugin.so properly. l2tp: Set

[PATCH l2tp/pptp 02/21] vpn: Add null checks.

2011-07-20 Thread Jukka Rissanen
--- plugins/vpn.c | 18 -- 1 files changed, 16 insertions(+), 2 deletions(-) diff --git a/plugins/vpn.c b/plugins/vpn.c index 506a71c..a1759c9 100644 --- a/plugins/vpn.c +++ b/plugins/vpn.c @@ -77,6 +77,9 @@ static int stop_vpn(struct connman_provider *provider)

[PATCH l2tp/pptp 03/21] task: Allow vpn plugins to send reply.

2011-07-20 Thread Jukka Rissanen
From: Mohamed Abbas mab...@linux.intel.com Change task notify to allow client to send dbus reply. This will allow vpn plugin to send requested user/password info. --- include/task.h |2 +- plugins/vpn.c |8 +--- src/task.c | 30 +- 3 files changed,

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