[PATCH v2] wifi: Reset device->scanning if scan has not returned in 60 secs

2015-10-28 Thread pasi . sjoholm
From: Pasi Sjöholm Due unknown reason sometimes scan_callback()-function is not being called after the scan has been succesfully initiated. This will lead into deadlock situation where device->scanning is indefinitely true and will forbid any future attemps of scanning available wifi networks.

[PATCH 5/5] resolver: Readd search domains back when resolvers are redone

2015-10-28 Thread pasi . sjoholm
From: Pasi Sjöholm Redoing dns servers will remove the current list of search domains from the servers/resolvers (eg. RDNSS configured ones) therefore they need to be added back. --- src/resolver.c | 21 + 1 file changed, 21 insertions(+) diff --git a/src/resolver.c b/src/re

[PATCH 3/5] service: Reconfigure search domains when nameservers have been modified

2015-10-28 Thread pasi . sjoholm
From: Pasi Sjöholm searchdomain_add_all()-function must be called when nameservers are modified for the service as the IPv4- and IPv6-ipconfig won't become connected at the same time and calling searchdomain_add_all() only once when the service becomes ready-state is not enough. Also nameserver-

[PATCH 4/5] resolver: Reorder call to __connman_service_nameserver_append()

2015-10-28 Thread pasi . sjoholm
From: Pasi Sjöholm __connman_service_nameserver_append() must be called after the resolver entry has been appended to entry_list and dnsproxy because otherwise searchdomain_add_all()-call on service will not add the search domain configuration to nameserver configured through RDNSS. --- src/reso

[PATCH 2/5] dnsproxy: Remove domains from dns server domain list when needed

2015-10-28 Thread pasi . sjoholm
From: Pasi Sjöholm Whenever the remove_entries() is called the __connman_dnsproxy_remove() must act properly eg. with triggered solver_expire_cb() the expired DNSSL-records from the IPv6 RA's must be removed. --- src/dnsproxy.c | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff

[PATCH 0/5] Properly configure search domains for resolvers

2015-10-28 Thread pasi . sjoholm
From: Pasi Sjöholm While debugging append_domain issue reported Vladimir Pavljuchenkov I noticed that dnsproxy did not do any appended_domain-queries with nameserver/resolvers configured by IPv6-infrastructure. After these five small patches the things seems to be right and all the resolvers are

[PATCH 1/5] dnsproxy: Rename append_domain() to append_or_remove_domain()

2015-10-28 Thread pasi . sjoholm
From: Pasi Sjöholm A new append_domain()- and remove_domain()-functions which both call append_or_remove_domain()-function by setting boolean append- variable accordingly. This enables a capability to remove domains from the dns-server's domain list. --- src/dnsproxy.c | 17 +++-- 1

[PATCH] wifi: Reset device->scanning if scan has not returned in 15 secs

2015-10-22 Thread pasi . sjoholm
From: Pasi Sjöholm Due unknown reason sometimes device->scanning is not set to false after wifi scanning (connman 1.30 and wpa_supplicant 2.5). This is probably due callback-function not being called after wifi scan and therefore it needs to have a timer to prevent deadlock. --- plugins/wifi.c |

[PATCH] network: enable ipconfig in autoconf_ipv6_set()

2015-08-28 Thread pasi . sjoholm
From: Pasi Sjöholm After commit c6ec75493aea16198a347f40b152d4bf33e0c942 the ipconfig for ipv6 did not get enabled anymore. --- src/network.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/network.c b/src/network.c index d10085d..ca88318 100644 --- a/src/network.c +++ b/src/network.c

[PATCH v4] wifi: disconnect if wpa_s state changes from completed to scanning

2015-05-12 Thread pasi . sjoholm
From: Pasi Sjöholm It's possible from wpa_s to change the state from completed to scanning without going through disconnected state if interface signals that the carrier went off and on (IFF_LOWER_UP flag). This will cause dead lock similar in c810464828d6764bea304de3e9b6b151aa05e313 if the wifi

[PATCH v3] wifi: disconnect if wpa_s state changes from completed to scanning

2015-05-06 Thread pasi . sjoholm
From: Pasi Sjöholm It's possible from wpa_s to change the state from completed to scanning without going through disconnected state if interface signals that the carrier went off and on (IFF_LOWER_UP flag). This will cause dead lock similar in c810464828d6764bea304de3e9b6b151aa05e313 if the wifi

[PATCH v2] wifi: disconnect if wpa_s state changes from completed to scanning

2015-05-06 Thread pasi . sjoholm
From: Pasi Sjöholm It's possible from wpa_s to change the state from completed to scanning without going through disconnected state if interface signals that the carrier went off and on (IFF_LOWER_UP flag). This will cause dead lock similar in c810464828d6764bea304de3e9b6b151aa05e313 if the wifi

[PATCH] wifi: disconnect if wpa_s state changes from completed to scanning

2015-05-06 Thread pasi . sjoholm
From: Pasi Sjöholm It's possible from wpa_s to change the state from completed to scanning without going through disconnected state if interface signals that the carrier went off and on (IFF_LOWER_UP flag). This will cause dead lock similar in c810464828d6764bea304de3e9b6b151aa05e313 if the wifi

[PATCH] wifi: disconnect if 4way-handshake fails while roaming.

2015-04-27 Thread pasi . sjoholm
From: Pasi Sjöholm While wifi->state is G_SUPPLICANT_STATE_COMPLETED and gets changed into G_SUPPLICANT_STATE_4WAY_HANDSHAKE the connection is most probably roaming. However if for some reason the wifi->state changes into G_SUPPLICANT_STATE_DISCONNECTED after being G_SUPPLICANT_STATE_4WAY_HANDSH

[PATCH 4/4] main.conf: Add "example" PassiveWiFiScan

2015-04-24 Thread pasi . sjoholm
From: Pasi Sjöholm --- src/main.conf | 6 ++ 1 file changed, 6 insertions(+) diff --git a/src/main.conf b/src/main.conf index 93c7a50..c3b0728 100644 --- a/src/main.conf +++ b/src/main.conf @@ -95,3 +95,9 @@ # re-enabling a technology, and after restarts and reboots. # Default value is fa

[PATCH 3/4] doc: Update connman.conf.5 about PassiveWiFiScan

2015-04-24 Thread pasi . sjoholm
From: Pasi Sjöholm --- doc/connman.conf.5 | 7 +++ 1 file changed, 7 insertions(+) diff --git a/doc/connman.conf.5 b/doc/connman.conf.5 index 626edfd..f017628 100644 --- a/doc/connman.conf.5 +++ b/doc/connman.conf.5 @@ -126,5 +126,12 @@ really know what you are doing. Restore earlier tethe

[PATCH 1/4] main: Add support for PassiveWifiScan configuration variable

2015-04-24 Thread pasi . sjoholm
From: Pasi Sjöholm --- src/main.c | 15 +++ 1 file changed, 15 insertions(+) diff --git a/src/main.c b/src/main.c index 1c17991..21c6121 100644 --- a/src/main.c +++ b/src/main.c @@ -73,6 +73,7 @@ static struct { bool single_tech; char **tethering_technologies;

[PATCH 2/4] wifi: Do passive scanning when PassiveWiFiScan is true

2015-04-24 Thread pasi . sjoholm
From: Pasi Sjöholm Do passive scanning instead of active to avoid revealing the SSID's of services have been configured. --- plugins/wifi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/wifi.c b/plugins/wifi.c index 42dd407..0fecee7 100644 --- a/plugins/wifi.c +++ b

[PATCH v3 0/4] Introduce PassiveWifiScan

2015-04-24 Thread pasi . sjoholm
From: Pasi Sjöholm Here are the patches promised long time ago to make it possible to use passive scanning instead of the active. The actual change is pretty simple one. :) v2: Splitted main.c and wifi.c into different commits v3: Modified the connman.conf.5 and main.conf Pasi Sjöholm (4): m

[PATCH v2 0/4] Introduce PassiveWifiScan

2015-04-24 Thread pasi . sjoholm
From: Pasi Sjöholm Here are the patches promised long time ago to make it possible to use passive scanning instead of the active. The actual change is pretty simple one. :) Pasi Sjöholm (4): main: Add support for PassiveWifiScan configuration variable wifi: Do passive scanning when Passiv

[PATCH 4/4] main.conf: Add "example" PassiveWiFiScan

2015-04-24 Thread pasi . sjoholm
From: Pasi Sjöholm --- src/main.conf | 6 ++ 1 file changed, 6 insertions(+) diff --git a/src/main.conf b/src/main.conf index 93c7a50..b553523 100644 --- a/src/main.conf +++ b/src/main.conf @@ -95,3 +95,9 @@ # re-enabling a technology, and after restarts and reboots. # Default value is fa

[PATCH 3/4] doc: Update connman.conf.5 about PassiveWiFiScan

2015-04-24 Thread pasi . sjoholm
From: Pasi Sjöholm --- doc/connman.conf.5 | 7 +++ 1 file changed, 7 insertions(+) diff --git a/doc/connman.conf.5 b/doc/connman.conf.5 index 626edfd..c2adbec 100644 --- a/doc/connman.conf.5 +++ b/doc/connman.conf.5 @@ -126,5 +126,12 @@ really know what you are doing. Restore earlier tethe

[PATCH 2/4] wifi: Do passive scanning when PassiveWiFiScan is true

2015-04-24 Thread pasi . sjoholm
From: Pasi Sjöholm Do passive scanning instead of active to avoid revealing the SSID's of services have been configured. --- plugins/wifi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/wifi.c b/plugins/wifi.c index 42dd407..0fecee7 100644 --- a/plugins/wifi.c +++ b

[PATCH 1/4] main: Add support for PassiveWifiScan configuration variable

2015-04-24 Thread pasi . sjoholm
From: Pasi Sjöholm --- src/main.c | 15 +++ 1 file changed, 15 insertions(+) diff --git a/src/main.c b/src/main.c index 1c17991..21c6121 100644 --- a/src/main.c +++ b/src/main.c @@ -73,6 +73,7 @@ static struct { bool single_tech; char **tethering_technologies;

[PATCH 2/3] doc: Update connman.conf.5 about PassiveWiFiScan

2015-04-24 Thread pasi . sjoholm
From: Pasi Sjöholm --- doc/connman.conf.5 | 7 +++ 1 file changed, 7 insertions(+) diff --git a/doc/connman.conf.5 b/doc/connman.conf.5 index 626edfd..c2adbec 100644 --- a/doc/connman.conf.5 +++ b/doc/connman.conf.5 @@ -126,5 +126,12 @@ really know what you are doing. Restore earlier tethe

[PATCH 3/3] main.conf: Add "example" PassiveWiFiScan

2015-04-24 Thread pasi . sjoholm
From: Pasi Sjöholm --- src/main.conf | 6 ++ 1 file changed, 6 insertions(+) diff --git a/src/main.conf b/src/main.conf index 93c7a50..b553523 100644 --- a/src/main.conf +++ b/src/main.conf @@ -95,3 +95,9 @@ # re-enabling a technology, and after restarts and reboots. # Default value is fa

[PATCH 1/3] wifi: Introduce PassiveWiFiScan option

2015-04-24 Thread pasi . sjoholm
From: Pasi Sjöholm Makes it possible to only do passive scanning so that the SSIDs are not revealed during the scans. --- plugins/wifi.c | 2 +- src/main.c | 15 +++ 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/plugins/wifi.c b/plugins/wifi.c index 42dd407..0fe

[PATCH 0/3] Introduce PassiveWifiScan

2015-04-24 Thread pasi . sjoholm
From: Pasi Sjöholm Here are the patches promised long time ago to make it possible to use passive scanning instead of the active. The actual change is pretty simple one. :) Pasi Sjöholm (3): wifi: Introduce PassiveWiFiScan option doc: Update connman.conf.5 about PassiveWiFiScan main.con

[PATCH] network: do not try to set gateway with dhcpv6

2015-03-24 Thread pasi . sjoholm
From: Pasi Sjöholm Setting up gateway is handled by the kernel therefore ConnMan does not need to do it when dhcpv6 is used. This fixes the issue with IPv6 nameserver host routes getting added as link-local due the gateway in the ipconfig was always null. Reported by Tore Anderson. --- src/net

[PATCH] service: set routes only for same family-type

2015-03-23 Thread pasi . sjoholm
From: Pasi Sjöholm Routes should not be tried to be set with nameserver and gw being different family, as this will lead into having link-local routes for hosts which are not on the link (add_nameserver_route() will add link-local route if adding host route fails). --- src/service.c | 12 +++

[PATCH 1/3] resolver: Do not reset timers when redoing nameservers

2015-03-03 Thread pasi . sjoholm
From: Pasi Sjöholm If timers are reset during __connman_resolver_redo_servers() they will not have their timers set again at connman_resolver_append_lifetime() because each entry without a timer is a not RA initialized nameserver/domain search list. Resetting the timers also causes the entry_lis

[PATCH 3/3] rtln: Redo nameserver(s) only when ipaddress is previously unknown

2015-03-03 Thread pasi . sjoholm
From: Pasi Sjöholm Every RA causes process_newaddr() to be called with autoconfigured addresses and therefore removing/re-appending the dnsproxy servers is bit too radical thing to do if the address is already known/configured. --- src/rtnl.c | 23 --- 1 file changed, 12 inse

[PATCH 2/3] ipconfig: modify __connman_ipconfig_newaddr() to return success/fail

2015-03-03 Thread pasi . sjoholm
From: Pasi Sjöholm __connman_ipconfig_newaddr() needs to return success / fail for rtln.c:process_newaddr() so that we know if it's necessary to run __connman_resolver_redo_servers(). --- src/connman.h | 2 +- src/ipconfig.c | 11 ++- 2 files changed, 7 insertions(+), 6 deletions(-) d

[PATCH 0/3] DNS fixes

2015-03-03 Thread pasi . sjoholm
From: Pasi Sjöholm Patch1: If timers are reset during __connman_resolver_redo_servers() they will not have their timers set again at connman_resolver_append_lifetime() because each entry without a timer is a not RA initialized nameserver/domain search list. Resetting the timers also causes

[PATCH 2/3] dhcpv6: Fail if we have error with rapid commit

2015-03-02 Thread pasi . sjoholm
From: Pasi Sjöholm If error is got from DHCP-server the operation should fail instead of doing DAD as this can lead into a loop of solicitation->reply->solicitation->reply... --- src/dhcpv6.c | 11 +-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/dhcpv6.c b/src/dhcpv

[PATCH 3/3] dhcpv6: Rate limit requests when no address is got

2015-03-02 Thread pasi . sjoholm
From: Pasi Sjöholm When reply for request does not contain address and has not set error in advertise-phase it is possible to end up with a loop of requests (eg. when IA_TA requested from eg. Cisco EPC3940L). --- src/dhcpv6.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sr

[PATCH 1/3] gdhcp: Fix rapid commit option length check

2015-03-02 Thread pasi . sjoholm
From: Pasi Sjöholm Rapid commit option lenght is zero according to RFC3315, 22.14. --- gdhcp/client.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gdhcp/client.c b/gdhcp/client.c index 49d6351..5a4a89c 100644 --- a/gdhcp/client.c +++ b/gdhcp/client.c @@ -2464,7 +2464,7 @@

[PATCH 0/3] DHCPv6 fixes

2015-03-02 Thread pasi . sjoholm
From: Pasi Sjöholm Patch1: The option length is always 0 if the rapid commit-option is included in the message. Instead of invalidating 0-lenght option, invalidate option lenght not being zero to make the rapid commit to work correctly. RFC3315, 22.14. Patch2: If any error is got in the reply to

[PATCH v2] ofono: always set configuration method when connected

2015-02-24 Thread pasi . sjoholm
From: Pasi Sjöholm If configuration method is not always set the ConnMan will use previously set configuration from previous connections. --- plugins/ofono.c | 18 +- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/plugins/ofono.c b/plugins/ofono.c index d7f88c5..5c

[PATCH] gdhcp: Use DHCPV6_CLIENT_PORT as source port

2015-02-21 Thread pasi . sjoholm
From: Pasi Sjöholm Some buggy dhcpv6-server implementations are re-using the original source port from the dhcpv6-client messages to their dhcpv6-reply packets (eg. Cisco EPC3940L) as a destination port. Due to this we need to make sure that we use DHCPV6_CLIENT_PORT (udp/546) as the source port

[PATCH] ipconfig: use only settings related to configuration method

2015-02-11 Thread pasi . sjoholm
From: Pasi Sjöholm If service is ever being configured with manual ip-address, netmask and gateway and later changed to dhcp, the related settings must not be read if configuration method is not manual or fixed. Otherwise they can possible collide with the settings got from dhcp-server if they ar

[PATCH 2/4] network: fix eternal associating with IPv6-only

2015-02-11 Thread pasi . sjoholm
From: Pasi Sjöholm It was possible with IPv6-only networks to have eternal associating variable set as true, especially when ipv4 configuration method was OFF. --- src/network.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/network.c b/src/network.c index db19cb9.

[PATCH 3/4] network: make sure that IPv6 is enabled with autoconfiguration

2015-02-11 Thread pasi . sjoholm
From: Pasi Sjöholm Previously IPv6 enabled with manual_ipv6_net but not with autoconfiguration. --- src/network.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/network.c b/src/network.c index 0e979c9..217be32 100644 --- a/src/network.c +++ b/src/network.c @@ -614,6 +614,8 @@ static v

[PATCH 4/4] network: set network->connecting after ip address is set

2015-02-11 Thread pasi . sjoholm
From: Pasi Sjöholm network->connecting was incorrectly set to false on autoconf_ipv6_set and it needs to be set only after we have ip addresses for the interface. --- src/network.c | 10 ++ 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/network.c b/src/network.c index

[PATCH 1/4] network: disable IPv6 completely if method is off

2015-02-11 Thread pasi . sjoholm
From: Pasi Sjöholm If method is set off for IPv6 then it should be completely disabled and not to allow kernel autoconfigure the addresses for the service. --- src/network.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/network.c b/src/network.c index 94440dc..db1

[PATCH 0/4 v2] various IPv6 fixes

2015-02-11 Thread pasi . sjoholm
From: Pasi Sjöholm v2: Splitted patch 2 in two. Found these problems while playing with IPv4/6-only connections while other ip-version method is set to OFF. Pasi Sjöholm (4): network: disable IPv6 completely if method is off network: fix eternal associating with IPv6-only network: make su

[PATCH 2/3 v3] network: fix eternal associating with IPv6-only

2015-02-11 Thread pasi . sjoholm
From: Pasi Sjöholm It was possible with IPv6-only networks to have eternal associating variable set as true, especially when ipv4 configuration method was OFF. --- src/network.c | 16 ++-- 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/src/network.c b/src/network.c in

[PATCH 2/3 v2] network: fix eternal associating with IPv6-only

2015-02-11 Thread pasi . sjoholm
From: Pasi Sjöholm It was possible with IPv6-only networks to have eternal associating variable set as true, especially when ipv4 configuration method was OFF. --- src/network.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/network.c b/src/network.c index db19cb

[PATCH 1/2] ofono: always set configuration method when connected

2015-02-09 Thread pasi . sjoholm
From: Pasi Sjöholm If configuration method is not always set the ConnMan will use previously set configuration from previous connections. --- plugins/ofono.c | 15 +++ 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/plugins/ofono.c b/plugins/ofono.c index fabbf7c..b79cb

[PATCH 2/2] ofono: do not reset method if its _OFF

2015-02-09 Thread pasi . sjoholm
From: Pasi Sjöholm Method must not be reset from _OFF when disconnecting but only through Protocol-message handling. --- plugins/ofono.c | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/plugins/ofono.c b/plugins/ofono.c index b79cb0c..d18130e 100644 --- a/plugins/ofono

[PATCH 0/2] ofono IPv6 patching

2015-02-09 Thread pasi . sjoholm
From: Pasi Sjöholm These two patches are additional work againts [RFC] ofono: Set ipconfig off if indicated that the protocol is not used Pasi Sjöholm (2): ofono: always set configuration method when connected ofono: do not reset method if its _OFF plugins/ofono.c | 23 +---

[PATCH 3/3] network: make sure that IPv6 is enabled with autoconfiguration

2015-02-09 Thread pasi . sjoholm
From: Pasi Sjöholm Previously IPv6 enabled with manual_ipv6_net but not with autoconfiguration. --- src/network.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/network.c b/src/network.c index d30520e..3a52285 100644 --- a/src/network.c +++ b/src/network.c @@ -614,6 +614,8 @@ static v

[PATCH 0/3] various IPv6 fixes

2015-02-09 Thread pasi . sjoholm
From: Pasi Sjöholm Found these problems while playing with IPv4/6-only connections while other ip-version method is set to OFF. Pasi Sjöholm (3): network: disable IPv6 completely if method is off network: fix eternal associating/connecting with IPv6-only network: make sure that IPv6 is ena

[PATCH 2/3] network: fix eternal associating/connecting with IPv6-only

2015-02-09 Thread pasi . sjoholm
From: Pasi Sjöholm It was possible with IPv6-only networks to have eternal associating/connecting variable set as true, especially when ipv4 configuration method was OFF. --- src/network.c | 10 ++ 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/network.c b/src/network.

[PATCH 1/3] network: disable IPv6 completely if method is off

2015-02-09 Thread pasi . sjoholm
From: Pasi Sjöholm If method is set off for IPv6 then it should be completely disabled and not to allow kernel autoconfigure the addresses for the service. --- src/network.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/network.c b/src/network.c index 94440dc..db1

[PATCH] counter: fix possible memory leak

2015-01-08 Thread pasi . sjoholm
From: Pasi Sjöholm DBusMessage message leaks memory if not cleaned when counter is not found. --- src/counter.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/counter.c b/src/counter.c index 06e5daf..8ea6205 100644 --- a/src/counter.c +++ b/src/counter.c @@ -133,8 +1

[PATCH 1/3] ofono: Clean ipv4/6_method when disconnecting

2015-01-07 Thread pasi . sjoholm
From: Pasi Sjöholm Reset ipv4/6_method accordingly after disconnecting as next active connection might not have the same protocols in use. --- plugins/ofono.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugins/ofono.c b/plugins/ofono.c index fa3cfc2..8821f1e 100644 --- a/plugins/ofono

[PATCH 0/3 v8] Fixes for ofono-plugin to support dual/ipv4v6

2015-01-07 Thread pasi . sjoholm
From: Pasi Sjöholm With dual/ipv4v6 it seems that only valid ipv4-addresses are returned first and Ipv6.setting only consisting the interface. Valid ipv6-addresses are updated by the RIL few seconds later to ofono, and signaled to connman if ofono has been patched to do so. Following patches wo

[PATCH 2/3] [connman] ofono: Set CONNMAN_IPCONFIG_METHOD_AUTO/DHCP if not _FIXED

2015-01-07 Thread pasi . sjoholm
From: Pasi Sjöholm It is possible that IPv6.Settings-properties does not include ip-address, gateway or nameservers when the context is made active. This is due underlying ofono-driver/ril sending the assigned ipv4-addresses first and then the assigned ipv6-addresses (within 3 secs). This happen

[PATCH 3/3] [connman] ofono: Call set_connected if new configuration received while connected

2015-01-07 Thread pasi . sjoholm
From: Pasi Sjöholm Ofono can signal new configuration while context is active and therefore set_connected needs to be called. --- plugins/ofono.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/plugins/ofono.c b/plugins/ofono.c index 16d3b41..9db9898 100644 --- a/plugins/ofono.c +++ b/

[PATCH 3/3] ofono: Set CONNMAN_IPCONFIG_METHOD_AUTO when no address defined

2014-12-28 Thread pasi . sjoholm
From: Pasi Sjöholm It is possible that IPv6.Settings-properties does not include ip-address, gateway or nameservers when the context is made active. This is due underlying ofono-driver/ril sending the assigned ipv4-addresses first and then the assigned ipv6-addresses (within 3 secs). This happen

[PATCH 2/3] ofono: set ipconfig method to unknown

2014-12-28 Thread pasi . sjoholm
From: Pasi Sjöholm When set_connected is called, method needs to be set CONNMAN_IPCONFIG_METHOD_UNKNOWN so that no old configuration is used in case it was defined by any earlier active context and it is not defined by the current active context. --- plugins/ofono.c | 52

[PATCH 1/3] ofono: Clean ipv4/6_method when disconnecting

2014-12-28 Thread pasi . sjoholm
From: Pasi Sjöholm Reset ipv4/6_method accordingly after disconnecting as next active connection might not have the same protocols in use. --- plugins/ofono.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugins/ofono.c b/plugins/ofono.c index fa3cfc2..8821f1e 100644 --- a/plugins/ofono

[PATCH 0/3 v7] Fixes for ofono-plugin to support dual/ipv4v6

2014-12-28 Thread pasi . sjoholm
From: Pasi Sjöholm First of all I got it all wrong due a bug in ofono. :) a) RIL always returns the both ipv4 and ipv6-addresses to ofono which need to be setup as fixed-method in connman because the ofono also setups the addresses on the interfaces by itself. b) This works ok when either ip or

[PATCH 6/6] ofono: make sure valid addresses/methods are used in set_connected

2014-12-22 Thread pasi . sjoholm
From: Pasi Sjöholm When connection is set connected, method needs to be set CONNMAN_IPCONFIG_METHOD_UNKNOWN so that no old configuration is used in case only ipv4/ipv6-configuration is set. IPv6 can be also CONNMAN_IPCONFIG_METHOD_AUTO with dual/ipv4v6. --- plugins/ofono.c | 55

[PATCH 2/6] ofono: Implement protocol-message handling for context_changed

2014-12-22 Thread pasi . sjoholm
From: Pasi Sjöholm Reset ipv4/6_method to CONNMAN_IPCONFIG_METHOD_UNKNOWN when protocol is set ip/ipv6/dual on ofono, which can be only done when context is not active. --- plugins/ofono.c | 5 + 1 file changed, 5 insertions(+) diff --git a/plugins/ofono.c b/plugins/ofono.c index 7a8442b..1

[PATCH 5/6] ofono: Clean nameservers when disconnecting

2014-12-22 Thread pasi . sjoholm
From: Pasi Sjöholm Nameservers need to be cleaned after disconnecting so that they are not reused when pdp-protocol e.g. changes from ipv6 to dual/ipv4v6. --- plugins/ofono.c | 12 +--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/plugins/ofono.c b/plugins/ofono.c index

[PATCH 4/6] ofono: Set CONNMAN_IPCONFIG_METHOD_AUTO when no address defined

2014-12-22 Thread pasi . sjoholm
From: Pasi Sjöholm IPv6 configuration method is either CONNMAN_IPCONFIG_METHOD_FIXED (ipv6-pdp) or CONNMAN_IPCONFIG_METHOD_AUTO (SLAAC/DHCPv6, dual/ipv4v6-pdp). --- plugins/ofono.c | 26 -- 1 file changed, 16 insertions(+), 10 deletions(-) diff --git a/plugins/ofono.c b/

[PATCH 1/6] network: index needs to be set also for ip6config

2014-12-22 Thread pasi . sjoholm
From: Pasi Sjöholm Fixes the issue that network index was not set for ipv6-connections and therefore slaac/dhcpv6 was not working e.g. ofono cellular connections. --- src/network.c | 21 +++-- 1 file changed, 15 insertions(+), 6 deletions(-) diff --git a/src/network.c b/src/netw

[PATCH 0/6 v6] Fixes for ofono-plugin to support dual/ipv4v6

2014-12-22 Thread pasi . sjoholm
From: Pasi Sjöholm Patch 1 is required for connman to see the configuration set by slaac (and then again dhcpv6 (nameservers)). Patch 2 implements support for Protocol-message so that the old configuration will be "reset" to unknown-method until it is set again. Patch 3 is for extract_ipv4_sett

[PATCH 3/6] ofono: Do not set address or nameservers with invalid configuration

2014-12-22 Thread pasi . sjoholm
From: Pasi Sjöholm --- plugins/ofono.c | 25 ++--- 1 file changed, 14 insertions(+), 11 deletions(-) diff --git a/plugins/ofono.c b/plugins/ofono.c index 1617764..782c93e 100644 --- a/plugins/ofono.c +++ b/plugins/ofono.c @@ -824,20 +824,23 @@ static void extract_ipv4_settin

[PATCH 6/6] ofono: make sure valid addresses/methods are used in set_connected

2014-12-19 Thread pasi . sjoholm
From: Pasi Sjöholm When connection is set connected, method needs to be set CONNMAN_IPCONFIG_METHOD_UNKNOWN so that no old configuration is used in case only ipv4/ipv6-configuration is set. IPv6 can be also CONNMAN_IPCONFIG_METHOD_AUTO with dual/ipv4v6. --- plugins/ofono.c | 55

[PATCH 5/6] ofono: Clean ip-addresses and nameservers when disconnecting

2014-12-19 Thread pasi . sjoholm
From: Pasi Sjöholm Nameservers need to be cleaned after disconnecting so that they are not reused when pdp-protocol e.g. changes from ipv6 to dual/ipv4v6. Moving c42d37d566061422e7c36408090d672c6df80c73 to approriate place too. --- plugins/ofono.c | 26 +++--- 1 file changed

[PATCH 1/6] network: index needs to be set also for ip6config

2014-12-19 Thread pasi . sjoholm
From: Pasi Sjöholm Fixes the issue that network index was not set for ipv6-connections and therefore slaac/dhcpv6 was not working e.g. ofono cellular connections. --- src/network.c | 21 +++-- 1 file changed, 15 insertions(+), 6 deletions(-) diff --git a/src/network.c b/src/netw

[PATCH 0/6 v5] Fixes for ofono-plugin to support dual/ipv4v6

2014-12-19 Thread pasi . sjoholm
From: Pasi Sjöholm Patch 1 is required for connman to see the configuration set by slaac (and then again dhcpv6 (nameservers)). Patch 2 implements support for Protocol-message so that the old configuration will be "reset" to unknown-method until it is set again. Patch 3 is for extract_ipv4_sett

[PATCH 3/6] ofono: Do not set address or nameservers with invalid configuration

2014-12-19 Thread pasi . sjoholm
From: Pasi Sjöholm --- plugins/ofono.c | 25 ++--- 1 file changed, 14 insertions(+), 11 deletions(-) diff --git a/plugins/ofono.c b/plugins/ofono.c index 1617764..782c93e 100644 --- a/plugins/ofono.c +++ b/plugins/ofono.c @@ -824,20 +824,23 @@ static void extract_ipv4_settin

[PATCH 2/6] ofono: Implement protocol-message handling for context_changed

2014-12-19 Thread pasi . sjoholm
From: Pasi Sjöholm Reset ipv4/6_method to CONNMAN_IPCONFIG_METHOD_UNKNOWN when protocol is set ip/ipv6/dual on ofono, which can be only done when context is not active. --- plugins/ofono.c | 5 + 1 file changed, 5 insertions(+) diff --git a/plugins/ofono.c b/plugins/ofono.c index 7a8442b..1

[PATCH 4/6] ofono: Set CONNMAN_IPCONFIG_METHOD_AUTO when no address defined

2014-12-19 Thread pasi . sjoholm
From: Pasi Sjöholm IPv6 configuration method is either CONNMAN_IPCONFIG_METHOD_FIXED (ipv6-pdp) or CONNMAN_IPCONFIG_METHOD_AUTO (SLAAC/DHCPv6, dual/ipv4v6-pdp). --- plugins/ofono.c | 26 -- 1 file changed, 16 insertions(+), 10 deletions(-) diff --git a/plugins/ofono.c b/

[PATCH 2/6] ofono: Implement protocol-message handling for context_changed

2014-12-19 Thread pasi . sjoholm
From: Pasi Sjöholm Reset ipv4/6_method to CONNMAN_IPCONFIG_METHOD_UNKNOWN when protocol is set ip/ipv6/dual on ofono, which can be only done when context is not active. --- plugins/ofono.c | 5 + 1 file changed, 5 insertions(+) diff --git a/plugins/ofono.c b/plugins/ofono.c index 7a8442b..1

[PATCH 1/6] network: index needs to be set also for ip6config

2014-12-19 Thread pasi . sjoholm
From: Pasi Sjöholm Fixes the issue that network index was not set for ipv6-connections and therefore slaac/dhcpv6 was not working e.g. ofono cellular connections. --- src/network.c | 21 +++-- 1 file changed, 15 insertions(+), 6 deletions(-) diff --git a/src/network.c b/src/netw

[PATCH 5/6] ofono: Clean ip-addresses and nameservers when disconnecting

2014-12-19 Thread pasi . sjoholm
From: Pasi Sjöholm Nameservers need to be cleaned after disconnecting so that they are not reused when pdp-protocol e.g. changes from ipv6 to dual/ipv4v6. Moving c42d37d566061422e7c36408090d672c6df80c73 to approriate place too. --- plugins/ofono.c | 26 +++--- 1 file changed

[PATCH 6/6] ofono: make sure valid addresses/methods are used in set_connected

2014-12-19 Thread pasi . sjoholm
From: Pasi Sjöholm When connection is set connected, method needs to be set CONNMAN_IPCONFIG_METHOD_UNKNOWN so that no old configuration is used in case only ipv4/ipv6-configuration is set. IPv6 can be also CONNMAN_IPCONFIG_METHOD_AUTO with dual/ipv4v6. --- plugins/ofono.c | 55

[PATCH 0/6 v4] Fixes for ofono-plugin to support dual/ipv4v6

2014-12-19 Thread pasi . sjoholm
From: Pasi Sjöholm Patch 1 is required for connman to see the configuration set by slaac (and then again dhcpv6 (nameservers)). Patch 2 implements support for Protocol-message so that the old configuration will be "reset" to unknown-method until it is set again. Patch 3 is for extract_ipv4_sett

[PATCH 4/6] ofono: Set CONNMAN_IPCONFIG_METHOD_AUTO when no address defined

2014-12-19 Thread pasi . sjoholm
From: Pasi Sjöholm IPv6 configuration method is either CONNMAN_IPCONFIG_METHOD_FIXED (ipv6-pdp) or CONNMAN_IPCONFIG_METHOD_AUTO (SLAAC/DHCPv6, dual/ipv4v6-pdp). --- plugins/ofono.c | 26 -- 1 file changed, 16 insertions(+), 10 deletions(-) diff --git a/plugins/ofono.c b/

[PATCH 3/6] ofono: Do not set address or nameservers with invalid configuration

2014-12-19 Thread pasi . sjoholm
From: Pasi Sjöholm --- plugins/ofono.c | 25 ++--- 1 file changed, 14 insertions(+), 11 deletions(-) diff --git a/plugins/ofono.c b/plugins/ofono.c index 1617764..782c93e 100644 --- a/plugins/ofono.c +++ b/plugins/ofono.c @@ -824,20 +824,23 @@ static void extract_ipv4_settin

[PATCH 6/6] ofono: make sure valid addresses/methods are used in set_connected

2014-12-18 Thread pasi . sjoholm
From: Pasi Sjöholm When connection is set connected, method needs to be set CONNMAN_IPCONFIG_METHOD_UNKNOWN so that no old configuration is used in case only ipv4/ipv6-configuration is set. IPv6 can be also CONNMAN_IPCONFIG_METHOD_AUTO with dual/ipv4v6. --- plugins/ofono.c | 55

[PATCH 3/6] ofono: Do not set address or nameservers with invalid configuration

2014-12-18 Thread pasi . sjoholm
From: Pasi Sjöholm --- plugins/ofono.c | 25 ++--- 1 file changed, 14 insertions(+), 11 deletions(-) diff --git a/plugins/ofono.c b/plugins/ofono.c index 1617764..782c93e 100644 --- a/plugins/ofono.c +++ b/plugins/ofono.c @@ -824,20 +824,23 @@ static void extract_ipv4_settin

[PATCH 5/6] ofono: Old nameservers need to be cleared

2014-12-18 Thread pasi . sjoholm
From: Pasi Sjöholm Nameservers need to be reset when new addresses are extracted if method is not FIXED so that they are not reused when pdp-protocol e.g. changes from ipv6 to dual/ipv4v6. --- plugins/ofono.c | 5 + 1 file changed, 5 insertions(+) diff --git a/plugins/ofono.c b/plugins/ofon

[PATCH 1/6] network: index needs to be set also for ip6config

2014-12-18 Thread pasi . sjoholm
From: Pasi Sjöholm Fixes the issue that network index was not set for ipv6-connections and therefore slaac/dhcpv6 was not working e.g. ofono cellular connections. --- src/network.c | 21 +++-- 1 file changed, 15 insertions(+), 6 deletions(-) diff --git a/src/network.c b/src/netw

[PATCH 0/6 v3] Fixes for ofono-plugin to support dual/ipv4v6

2014-12-18 Thread pasi . sjoholm
From: Pasi Sjöholm Patch 1 is required for connman to see the configuration set by slaac (and then again dhcpv6 (nameservers)). Patch 2 implements support for Protocol-message so that the old configuration will be "reset" to unknown-method until it is set again. Patch 3 is for extract_ipv4_sett

[PATCH 4/6] ofono: Set CONNMAN_IPCONFIG_METHOD_AUTO when no address defined

2014-12-18 Thread pasi . sjoholm
From: Pasi Sjöholm IPv6 configuration method is either CONNMAN_IPCONFIG_METHOD_FIXED (ipv6-pdp) or CONNMAN_IPCONFIG_METHOD_AUTO (SLAAC/DHCPv6, dual/ipv4v6-pdp). --- plugins/ofono.c | 26 -- 1 file changed, 16 insertions(+), 10 deletions(-) diff --git a/plugins/ofono.c b/

[PATCH 2/6] ofono: Implement protocol-message handling for context_changed

2014-12-18 Thread pasi . sjoholm
From: Pasi Sjöholm Reset ipv4/6_method to CONNMAN_IPCONFIG_METHOD_UNKNOWN when protocol is set ip/ipv6/dual on ofono, which can be only done when context is not active. --- plugins/ofono.c | 5 + 1 file changed, 5 insertions(+) diff --git a/plugins/ofono.c b/plugins/ofono.c index 7a8442b..1

[PATCH 0/6] Fixes for ofono-plugin to support dual/ipv4v6

2014-12-16 Thread pasi . sjoholm
From: Pasi Sjöholm Patch 1 is required for connman to see the configuration set by slaac (and then again dhcpv6 (nameservers)). Patch 2 implements support for Protocol-message so that the old configuration will be "reset" to unknown-method until it is set again. Patch 3 makes sure that the old

[PATCH 3/6] ofono: Old nameservers need to be cleared

2014-12-16 Thread pasi . sjoholm
From: Pasi Sjöholm Nameservers need to be reset when new addresses are extracted so that they are not reused when pdp-protocol e.g. changes from ipv6 to dual/ipv4v6. --- plugins/ofono.c | 4 1 file changed, 4 insertions(+) diff --git a/plugins/ofono.c b/plugins/ofono.c index 1617764..29dfe

[PATCH 6/6] ofono: make sure valid addresses/methods are used in set_connected

2014-12-16 Thread pasi . sjoholm
From: Pasi Sjöholm When connection is set connected, method needs to be set CONNMAN_IPCONFIG_METHOD_UNKNOWN so that no old configuration is used in case only ipv4/ipv6-configuration is set. IPv6 can be also CONNMAN_IPCONFIG_METHOD_AUTO with dual/ipv4v6. --- plugins/ofono.c | 55

[PATCH 4/6] ofono: Do not set address or nameservers with invalid configuration

2014-12-16 Thread pasi . sjoholm
From: Pasi Sjöholm --- plugins/ofono.c | 25 ++--- 1 file changed, 14 insertions(+), 11 deletions(-) diff --git a/plugins/ofono.c b/plugins/ofono.c index 29dfe90..db162a9 100644 --- a/plugins/ofono.c +++ b/plugins/ofono.c @@ -826,20 +826,23 @@ static void extract_ipv4_settin

[PATCH 5/6] ofono: Set CONNMAN_IPCONFIG_METHOD_AUTO when no address defined

2014-12-16 Thread pasi . sjoholm
From: Pasi Sjöholm IPv6 configuration method is either CONNMAN_IPCONFIG_METHOD_FIXED (ipv6-pdp) or CONNMAN_IPCONFIG_METHOD_AUTO (SLAAC/DHCPv6, dual/ipv4v6-pdp). --- plugins/ofono.c | 26 -- 1 file changed, 16 insertions(+), 10 deletions(-) diff --git a/plugins/ofono.c b/

[PATCH 1/6] network: index needs to be set also for ip6config

2014-12-16 Thread pasi . sjoholm
From: Pasi Sjöholm Fixes the issue that network index was not set for ipv6-connections and therefore slaac/dhcpv6 was not working e.g. ofono cellular connections. --- src/network.c | 21 +++-- 1 file changed, 15 insertions(+), 6 deletions(-) diff --git a/src/network.c b/src/netw

[PATCH 2/6] ofono: Implement protocol-message handling for context_changed

2014-12-16 Thread pasi . sjoholm
From: Pasi Sjöholm Reset ipv4/6_method to CONNMAN_IPCONFIG_METHOD_UNKNOWN when protocol is set ip/ipv6/dual on ofono, which can be only done when context is not active. --- plugins/ofono.c | 5 + 1 file changed, 5 insertions(+) diff --git a/plugins/ofono.c b/plugins/ofono.c index 7a8442b..1

[PATCH 1/2] ofono: fix ip/ipv6/dual protocol support

2014-12-16 Thread pasi . sjoholm
From: Jarko Poutiainen -Reset ipv4/6_method to CONNMAN_IPCONFIG_METHOD_UNKNOWN when protocol is set ip/ipv6/dual on ofono. -IPv6 configuration method is either CONNMAN_IPCONFIG_METHOD_FIXED (ipv6-pdp) or CONNMAN_IPCONFIG_METHOD_AUTO (SLAAC/DHCPv6, dual/ipv4v6-pdp). -When connection is set ac

  1   2   >