Re: [RFC 3/5] resolver: Create STATEDIR and use it when writing resolv.conf

2015-11-02 Thread Jukka Rissanen
Hi Patrik, On pe, 2015-10-30 at 12:44 +0200, Patrik Flykt wrote: > Create STATEDIR [/var]/run/connman and unconditionally write resolv.conf > to this directory. > --- > src/main.c | 6 ++ > src/resolver.c | 2 +- > 2 files changed, 7 insertions(+), 1 deletion(-) > > diff --git

Re: [PATCH] IPv6 Timeserver for NTP

2015-10-05 Thread Jukka Rissanen
Hi Naveen, On pe, 2015-10-02 at 10:20 -0700, Naveen Singh wrote: > Hi Jukka, > > On Fri, Oct 2, 2015 at 12:29 AM, Jukka Rissanen > <jukka.rissa...@linux.intel.com> wrote: > Hi Naveen, > > On to, 2015-10-01 at 23:00 -0700, Naveen Singh wrote

Re: [PATCH] IPv6 Timeserver for NTP

2015-10-02 Thread Jukka Rissanen
Hi Naveen, On to, 2015-10-01 at 23:00 -0700, Naveen Singh wrote: > On Thu, Oct 1, 2015 at 6:26 AM, Patrik Flykt > wrote: > > > > > Hi, > > > > On Wed, 2015-09-30 at 22:08 -0700, Naveen Singh wrote: > > > From: Naveen Singh > > > > > >

Re: Connman

2015-08-14 Thread Jukka Rissanen
Hi Dmitriy, On pe, 2015-08-14 at 09:01 +, Klimenko, Dmitriy wrote: Hello, I want to use connman in my project and I have a few questions regarding connman usage. Is it possible to use connman as a librarary and not via DBus? If yes, could you please send instruction? No, connman is

Re: [PATCH] ntp: Fix print format for timeval and make debug output more informative

2015-07-28 Thread Jukka Rissanen
On ma, 2015-07-27 at 17:47 +0200, Peter Meerwald wrote: timeval has signed values --- src/ntp.c |7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/ntp.c b/src/ntp.c index abb2caa..2c313a4 100644 --- a/src/ntp.c +++ b/src/ntp.c @@ -332,14 +332,14 @@ static

Re: [PATCH v1 3/4] firewall: Add support for single rule add/remove operations

2015-07-28 Thread Jukka Rissanen
Hi Daniel, On ti, 2015-07-28 at 08:57 +0200, Daniel Wagner wrote: We like to add and remove rules while the firewall is up and running. For example we need to insert per Session rule in the global NAT table. That could also be implemented destroying the whole table and recreate it when need

Re: [PATCH] dnsproxy: Fix spelling of refreshing in debug message

2015-07-28 Thread Jukka Rissanen
On ma, 2015-07-27 at 17:46 +0200, Peter Meerwald wrote: --- src/dnsproxy.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/dnsproxy.c b/src/dnsproxy.c index 3a369bc..a1eda55 100644 --- a/src/dnsproxy.c +++ b/src/dnsproxy.c @@ -333,14 +333,14 @@ static void

Re: [PATCH] gweb: Don't close socket twice when channel is unref'd

2015-07-28 Thread Jukka Rissanen
Hi Peter, On ma, 2015-07-27 at 17:45 +0200, Peter Meerwald wrote: From: Peter Meerwald p.meerw...@bct-electronic.com since g_io_channel_set_close_on_unref() is called on the channel, no need to close socket manually beforehand, this fixes (connmand:14087): GLib-WARNING **: Invalid file

Re: [PATCH 1/2] config: monitor inotify event IN_MOVED_FROM

2015-07-28 Thread Jukka Rissanen
Hi Jaakko, On ti, 2015-07-28 at 15:48 +0300, Jaakko Hannikainen wrote: If a config file is moved from a config directory, IN_DELETE is not fired but IN_MOVED_FROM is, so both have to be monitored. --- src/config.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

Re: [PATCH] vpn: Fix NULL dereferencing in vpn_set_state

2015-07-27 Thread Jukka Rissanen
Hi Jaakko, On ma, 2015-07-27 at 15:32 +0300, Jaakko Hannikainen wrote: Data might be NULL if called from vpn_died, so check it and do nothing if it is NULL. --- vpn/plugins/vpn.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/vpn/plugins/vpn.c b/vpn/plugins/vpn.c index

Re: [PATCH] doc: Update service documentation about Immutable

2015-07-27 Thread Jukka Rissanen
Hi Jaakko, On pe, 2015-07-24 at 12:54 +0300, Jaakko Hannikainen wrote: If a service is set as Immutable, the AutoConnect property can still be changed. --- doc/service-api.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/service-api.txt

Re: [PATCH v0 1/4] session_policy_local: Set defaults when using policy file

2015-07-27 Thread Jukka Rissanen
Hi Wagi, On ma, 2015-07-27 at 14:47 +0200, Daniel Wagner wrote: When the policy file doesn't define all values of the polcies polcies - policy some of the values are not properly initialized or set to sane defaults. Setting all values to defaults and then overwrite all or partially is what

Re: [PATCH v0 3/4] firewall: Add support for single rule add/remove operations

2015-07-27 Thread Jukka Rissanen
Hi Wagi, On ma, 2015-07-27 at 14:47 +0200, Daniel Wagner wrote: We like to add and remove rules while the filewall is up and running. filewall - firewall For example we need to insert per Session rule in the global NAT table. That could also be implemented destroying the whole table and

Re: Seeing issues with NTP

2015-07-22 Thread Jukka Rissanen
Hi Naveen, On ti, 2015-07-21 at 18:16 -0700, Naveen Singh wrote: Hi All In our testing of new connman (version 1.29) we do see following error print sometimes (This is happening very rarely and I do not have any easy way to reproduce it at will): 2015-07-17 01:35:20.00 daemon.err

[PATCH] doc: Clarify the VPN routes description for IPv6

2015-07-22 Thread Jukka Rissanen
For VPN UserRoutes and ServerRoutes properties, the Netmask field is the IPv4 netmask (like 255.255.255.0) for IPv4 routes. For IPv6 routes it is the prefix length (like 64) instead. Reported by Jaakko Hannikainen. --- doc/vpn-connection-api.txt | 6 -- 1 file changed, 4 insertions(+), 2

[PATCH 5/6] vpn: Set disconnected VPN service to IDLE

2015-07-21 Thread Jukka Rissanen
Setting the state of the disconnected VPN service to IDLE instead of leaving it to DISCONNECTED. Now it behaves the same way as the service that is disconnected by ConnMan daemon. Reported by Jaakko Hannikainen. --- src/provider.c | 4 1 file changed, 4 insertions(+) diff --git

[PATCH 2/6] vpn: NULL dbus message in plugin input handler

2015-07-21 Thread Jukka Rissanen
If the user cancelled the agent request, then we might have NULL reply in the input handler. If we try to pass this kind of reply to dbus library, it will normally just abort. So catch this and do not pass NULL message to dbus_message_get_type(). This affects openconnect, l2tp and pptp input

[PATCH 4/6] vpn: Pass original sender to connman-vpnd when connecting

2015-07-21 Thread Jukka Rissanen
We need to give the original DBus sender to connman-vpnd when connmand is proxying the connect request. Otherwise the possible agent request goes to default vpn agent instead of the correct agent that initiated the connect request. Reported by Jaakko Hannikainen. --- include/provider.h | 3 ++-

[PATCH 6/6] vpn: Provider state was not updated after an error

2015-07-21 Thread Jukka Rissanen
This fixes following scenario: - user tries to connect to a VPN - VPN requests some additional data via agent interface - user cancels the agent request - VPN connection is terminated - VPN service goes back to idle - user tries to connect to a VPN again - VPN does not ask anything from the user

[PATCH 1/6] agent: Do not access NULL pointer in cancelling

2015-07-21 Thread Jukka Rissanen
If agent API user (in this case connman-vpnd) has not set the memory allocation callback (context_ref pointer), then the requst-driver pointer will be NULL and we will get a segfault in this usage scenario: $ connmanctl connmanctl vpnagent on connmanctl connect vpn_service VPN Agent RequestInput

[PATCH 3/6] vpn: Clear any pending DNS resolver query when quitting

2015-07-21 Thread Jukka Rissanen
This is a special case that happens if we for example stop ConnMan while there is a pending DNS resolver going on. Fixing this minor memory leak helps to catch the more serious leaks in ConnMan. Reported by Jaakko Hannikainen. --- vpn/vpn-provider.c | 18 ++ 1 file changed, 18

[PATCH 0/6] VPN fixes

2015-07-21 Thread Jukka Rissanen
the connection request after agent has asked something from the user, then it is possible that subsequent connection attemps will not ask user. This is fixed in patch 6. Cheers, Jukka Jukka Rissanen (6): agent: Do not access NULL pointer in cancelling vpn: NULL dbus message in plugin input

Re: [PATCH v2 0/6] Strip whitespace and empty strings from DBus input

2015-07-17 Thread Jukka Rissanen
Hi Jaakko, On ke, 2015-07-15 at 15:26 +0300, Jaakko Hannikainen wrote: Hello, These patches remove empty strings and leading/trailing whitespace from DBus input for Domains.Configuration, Proxy.Configuration, Timeservers.Configuration

Re: [PATCH] doc/technology-api.txt: Fix typo

2015-07-17 Thread Jukka Rissanen
Hi Marko, On ke, 2015-07-15 at 15:03 +0200, Marko Sulejic wrote: --- doc/technology-api.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/technology-api.txt b/doc/technology-api.txt index f97eac0..f3703c0 100644 --- a/doc/technology-api.txt +++

Re: cellular technology is not getting listed

2015-07-16 Thread Jukka Rissanen
Hi Ram, On to, 2015-07-16 at 08:24 +, Kallumari Nagaraja Rao, RammohanX wrote: All, Following things are done, 1./var/lib/connman cellular added What do you mean by this? 2./etc/connman/main.conf has wifi and cellular as preferred technologies PreferredTechnologies only

Re: [PATCH 3/5] service: Remove empty strings from Proxy

2015-07-15 Thread Jukka Rissanen
Hi Jaakko, On ke, 2015-07-15 at 11:35 +0300, Jaakko Hannikainen wrote: Same as previous commit, but for Proxy.Configuration. Proper commit message please. --- src/service.c | 14 ++ 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/src/service.c b/src/service.c

Re: [PATCH 1/5] service: Add function to remove empty strings

2015-07-15 Thread Jukka Rissanen
Hi Jaakko, On ke, 2015-07-15 at 11:35 +0300, Jaakko Hannikainen wrote: This helper function takes in a heap-allocated buffer of heap-allocated strings. If no strings should be removed, return the buffer. Else, free all empty strings, place nonempty strings to a new container and return it,

Re: [PATCH v2 0/6] Strip whitespace and empty strings from DBus input

2015-07-15 Thread Jukka Rissanen
Hi Jaakko, On ke, 2015-07-15 at 15:26 +0300, Jaakko Hannikainen wrote: Hello, These patches remove empty strings and leading/trailing whitespace from DBus input for Domains.Configuration, Proxy.Configuration, Timeservers.Configuration

Re: connman online test

2015-07-09 Thread Jukka Rissanen
On to, 2015-07-09 at 11:15 +0200, Marcel Holtmann wrote: Hi Jussi, Now that we're talking about the online check... I've talked to people who considered this behaviour calling home and thought it unreasonable that a) it's not possible to prevent the online check from happening via

Re: Not able to start dbus in ARM platform

2015-06-08 Thread Jukka Rissanen
On ma, 2015-06-08 at 15:24 +0300, Patrik Flykt wrote: On Mon, 2015-06-08 at 17:38 +0530, Sukanya Ch wrote: Hi, I am using connman in ARM platform. But while starting daemon I am getting this error. Can you please help me? There are no errors below. ConnMan is just a little bit too

Re: Disable rp_filter in main.conf

2015-05-12 Thread Jukka Rissanen
to ensure proper functionality with two or more interfaces. commit cb3e78500a2539a61d73ecb9708a2b06ea1f356d Author: Jukka Rissanen jukka.rissa...@linux.intel.commailto:jukka.rissa...@linux.intel.com Date: Fri Oct 21 11:16:55 2011 +0300 service: Activate loose mode routing If more

Re: Multiple connections?

2015-05-07 Thread Jukka Rissanen
Hi Daniel, On ke, 2015-05-06 at 16:36 +0200, Daniel Nyström wrote: Hi ConnMan folks! I've just started using ConnMan and figured my situation is a bit different than most of you. I've got a GSM module (SIM800h) run by oFono connected to ConnMan. I also got a LAN connection with DHCP.

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

2015-05-06 Thread Jukka Rissanen
Hi Pasi, On ke, 2015-05-06 at 14:22 +0300, pasi.sjoh...@jolla.com wrote: From: Pasi Sjöholm pasi.sjoh...@jollamobile.com 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

Re: re-connecting to enterprise network

2015-04-29 Thread Jukka Rissanen
Hi Tom, On ke, 2015-04-29 at 00:44 +, Thomas Green wrote: All, I successfully connect to an enterprise AP, then at some point change to a different AP, and finally attempt to switch back to the original enterprise AP. The connection seems to be remembering the identity and passphrase

[PATCH] wifi: Do not add frequency to hidden AP scan

2015-04-15 Thread Jukka Rissanen
It seems that wpa_supplicant gets confused if we pass frequency to scan params when trying to connect to hidden AP. Fixes CM-676 --- plugins/wifi.c | 7 ++- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/plugins/wifi.c b/plugins/wifi.c index 1f90a31..42dd407 100644 ---

Re: Hidden network with different APs.

2015-04-15 Thread Jukka Rissanen
Hi Pedro, On ke, 2015-04-15 at 09:45 +0200, Pedro Erencia wrote: Hi Jason, The AP is a dlink-DAP 2590. The Wireless band is fixed to 2.4 GHz, the Channel is fixed to 6 and the Channel width to 20 MHz. I've repeated the test. After rebooting the AP the frequency changed from 2467 to

Re: Hidden network with different APs.

2015-04-14 Thread Jukka Rissanen
Hi Pedro, On ti, 2015-04-14 at 12:25 +0200, Pedro Erencia wrote: Any idea about that ? I was thinking about filling a bug report but it seems I must be granted access to Jira (Patrik?) You need first to create an account to 01.org from this link (or access it directly from main page),

Re: Hidden network with different APs.

2015-04-14 Thread Jukka Rissanen
On ti, 2015-04-14 at 19:23 -0700, Jason Abele wrote: On Tue, Apr 14, 2015 at 12:25:58PM +0200, Pedro Erencia wrote: As a workaround I'd try to always remove the wifi_xxx_ folders until a solution is found. Any other ideas ? Could you check if the AP is changing frequencies each time you

Re: Hidden network with different APs.

2015-04-13 Thread Jukka Rissanen
Hi Pedro, On ma, 2015-04-13 at 13:49 +0200, Pedro Erencia wrote: Hi. We are facing some problems regarding hidden SSIDs. To summarize, if a connection has been correctly established with a hidden SSID (so a wifi__ folder is created), if the AP is rebooted connman fails to

Re: [PATCH] dnsproxy: request_data in request_list need the request data

2015-04-07 Thread Jukka Rissanen
On ti, 2015-04-07 at 12:58 +0300, Slava Monich wrote: On 07/04/15 12:14, Patrik Flykt wrote: Hi, On Thu, 2015-04-02 at 21:36 +0300, Slava Monich wrote: The ones received over UDP didn't have it. --- src/dnsproxy.c | 3 +++ 1 file changed, 3 insertions(+) diff --git

[RFC 2/3] dnsproxy: Do not check numserv in request timeout

2015-04-07 Thread Jukka Rissanen
The req-numserv tries to track that we have received all the answers from different servers. This is pointless when the request is about to go away as we need to send something to the client in this case anyway. --- src/dnsproxy.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff

[RFC 0/3] DNS proxy fixes

2015-04-07 Thread Jukka Rissanen
buffer was NULL). I also refactored the request_timeout() in patch 3 as it had duplicate code and was hard to follow. Cheers, Jukka Jukka Rissanen (2): dnsproxy: Do not check numserv in request timeout dnsproxy: Refactor the request_timeout() function Slava Monich (1): dnsproxy

[RFC 1/3] dnsproxy: request_data in request_list need the request data for UDP

2015-04-07 Thread Jukka Rissanen
From: Slava Monich slava.mon...@jolla.com UDP packet did not set the request and request_len properly. This is seen in valgrind report. ==7180== Syscall param socketcall.sendto(msg) points to unaddressable byte(s) ==7180==at 0x4B9CE34: sendto (in /lib/libc-2.15.so) ==7180==by 0x79283:

[PATCH] configure: Add option to set path of the pptp binary

2015-04-02 Thread Jukka Rissanen
User can set the path to client binary using --with-pptp option. --- configure.ac | 3 +++ 1 file changed, 3 insertions(+) diff --git a/configure.ac b/configure.ac index 85c01b9..5eb5a34 100644 --- a/configure.ac +++ b/configure.ac @@ -146,6 +146,9 @@ fi AM_CONDITIONAL(L2TP, test ${enable_l2tp}

[PATCH] configure: Add option to set path of the l2tp binary

2015-04-02 Thread Jukka Rissanen
User can set the path to client binary using --with-l2tp option. --- configure.ac | 3 +++ 1 file changed, 3 insertions(+) diff --git a/configure.ac b/configure.ac index cec10bf..85c01b9 100644 --- a/configure.ac +++ b/configure.ac @@ -121,6 +121,9 @@ fi AM_CONDITIONAL(VPNC, test ${enable_vpnc}

Re: [PATCH] plugin: vlan: add support for VLAN

2015-04-01 Thread Jukka Rissanen
Hi Marcus, On ti, 2015-03-31 at 20:08 +0200, Marcus Folkesson wrote: From: Marcus Folkesson marcus.folkes...@gmail.com Support for multiple VLANs binded to the same interface. VLAN services appear as: vlan_MAC to bounded IF_VLAN IFNAME For example: vlan_5c260a4bf6a3_vlan3

Re: [PATCH] device/inet: Create read-only devices instead of ignoring completely

2015-03-19 Thread Jukka Rissanen
Hi Andreas, On ke, 2015-03-18 at 16:27 +0100, Andreas Oberritter wrote: Booting an nfsroot with connman requires passing -I eth0 to ignore the interface. This isn't very nice, for at least the following reasons: * A User interface based on connman is led to believe that there's no

Re: [PATCH] device/inet: Create read-only devices instead of ignoring completely

2015-03-19 Thread Jukka Rissanen
Hi Andreas, On to, 2015-03-19 at 12:18 +0100, Andreas Oberritter wrote: Hi Jukka, On 19.03.2015 09:02, Jukka Rissanen wrote: Hi Andreas, On ke, 2015-03-18 at 16:27 +0100, Andreas Oberritter wrote: Booting an nfsroot with connman requires passing -I eth0 to ignore the interface

Re: connman connection policy

2015-03-18 Thread Jukka Rissanen
Hi Ram, On ke, 2015-03-18 at 13:12 +, Kallumari Nagaraja Rao, RammohanX wrote: Hello Jukka, Is the Agent request input happens via a dictionary ? Yes, the passphrase is sent as a dictionary element. See doc/agent-api.txt document for details (there are some examples at the end of the

Re: connman connection policy

2015-03-17 Thread Jukka Rissanen
On ti, 2015-03-17 at 10:25 +, Kallumari Nagaraja Rao, RammohanX wrote: This is what I tried doing it, I am very new to these stuffs :( DBusMessage * agent_update_passphrase(DBusConnection *connection, char * serv_str, char * pass) { DBusMessage *message, *reply; DBusError

Re: Issues with connection to hidden network

2015-02-19 Thread Jukka Rissanen
Hi Wawrzek, On to, 2015-02-19 at 12:44 +, Wawrzek Niewodniczanski wrote: Hi, I've got a problem(s) with connection to our office wifi networks using connman. This email is about connection to hidden network (I had problem with WPA2, but that's the story for another email). Connman:

Re: [RFC v2] network: Merge identical ipconfig code paths

2015-02-12 Thread Jukka Rissanen
Hi Patrik, On ke, 2015-02-11 at 13:54 +0200, Patrik Flykt wrote: Configure IPv4 and IPv6 configurations only once in __connman_network_enable_ipconfig() and use this function when setting the network connected. Remove obsolete function and rework the rest to centralise configuration state and

Re: [PATCH] Add setting: UpdateResolvConf

2015-02-04 Thread Jukka Rissanen
On ke, 2015-02-04 at 15:53 +0100, Martin Tournoij wrote: On Wed, Feb 4, 2015, at 15:41, Jukka Rissanen wrote: Just wondering where do you get the nameserver IP addresses in this case? Are you manually updating resolv.conf? Not sure if I understand this question? I mean where does unbound

Re: [PATCH] Add setting: UpdateResolvConf

2015-02-04 Thread Jukka Rissanen
Hi Martin, On ke, 2015-02-04 at 15:34 +0100, Martin Tournoij wrote: On Wed, Feb 4, 2015, at 15:28, Patrik Flykt wrote: Hi, On Wed, 2015-02-04 at 15:23 +0100, Martin Tournoij wrote: How do you pick up the DNS servers when changing networks if ConnMan never writes the ones

Re: connman vs networkmanager today

2015-01-28 Thread Jukka Rissanen
Hi Vasiliy, On ke, 2015-01-28 at 13:51 +0400, Vasiliy Tolstov wrote: 2015-01-12 12:07 GMT+03:00 Tomasz Bursztyka tomasz.burszt...@linux.intel.com: ConnMan does not support ipsec yet. Do you have any plans to add this kind of support? As i understand we simply need to spawn xl2tp

[PATCH 2/2] gdhcp: Server id must not be converted to host byte order

2015-01-26 Thread Jukka Rissanen
As the server_nip is already in network byte order, we must not convert the received server id option to host byte order. This used to work as we sent the server id in wrong byte order and then swapped it back here. But because of previous fix to sent the server id in network byte order, this

[PATCH 1/2] gdhcp: Set DHCP server id option in network byte order

2015-01-26 Thread Jukka Rissanen
The DHCP server id option was sent using host byte order instead of network byte order. If the client uses the value when sending data to the server, then the DHCP packet will contain IP address in wrong byte order. This issue was noticed with P2P connections where we do not set the gateway

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

2014-12-18 Thread Jukka Rissanen
Hi Pasi, On to, 2014-12-18 at 14:42 +, Pasi Sjöholm wrote: If ipv4_method is dhcp there will be no address, and neither there will an address with ipv6 when dual-mode (slaac dhcpv6) is used. So we just can jump into conlusions.. So this all is about DHCP then...? and SLAAC.. which

Re: [PATCH] service: Send changed type signal

2014-12-11 Thread Jukka Rissanen
On to, 2014-12-11 at 12:24 +0200, Tomasz Bursztyka wrote: Hi, NACK. From: Chengyi Zhao chengyi1.z...@archermind.com --- src/service.c | 31 ++- 1 file changed, 30 insertions(+), 1 deletion(-) diff --git a/src/service.c b/src/service.c index

Re: connman not bringing up interfaces

2014-11-06 Thread Jukka Rissanen
Hi Tim, On to, 2014-11-06 at 11:41 -0500, Tim Tisdall wrote: I have connman 1.26 working in linaro (ubuntu derivative for arm devices) off of an sdcard. However, when I move the OS to the NAND drive the network adapters don't automatically come up as they did before when running off the

Re: Preconfiguring wired Ethernet interfaces

2014-10-27 Thread Jukka Rissanen
Hi Ryan, On ma, 2014-10-27 at 09:44 -0500, Ryan Kuester wrote: Hi all, There's a thread[1] from early 2013 which concluded that the way to statically configure wired Ethernet interfaces that are not connected is by writing .config files to /var/lib/connman/. In my case, this seems to

Re: [PATCH] gweb: Enable TLSv1.2 and TLSv1.1

2014-10-20 Thread Jukka Rissanen
Hi Pasi, On su, 2014-10-19 at 00:33 +0300, pasi.sjoh...@jolla.com wrote: From: Pasi Sjöholm pasi.sjoh...@jollamobile.com As the web servers are migrating away from SSLv3 more secure protocols need to be enabled. I just wonder should we just disable sslv3 support all together? Thanks for

Re: Connman refusing to find wifi

2014-10-13 Thread Jukka Rissanen
Hi Matti, On la, 2014-10-11 at 22:15 +0300, Matti Laakso wrote: Hi, I'm running Yocto Linux 1.4 with connman 1.12 and wpa_supplicant 2.0. I know it's not the latest and greatest, but I hope you are still able to help. I'm basically unable to get connman to recognize wpa_supplicant.

Re: Connman refusing to find wifi

2014-10-13 Thread Jukka Rissanen
Hi Matti, On 13 October 2014 21:23, Matti Laakso malaa...@elisanet.fi wrote: Hi Jukka, I'm running Yocto Linux 1.4 with connman 1.12 and wpa_supplicant 2.0. I Yep, Yocto 1.4 (dylan) has new dbus interface activated.

Re: [PATCH] dnxproxy: Enable DNS on non-default services if there is no default

2014-10-10 Thread Jukka Rissanen
Hi Justin, On to, 2014-10-09 at 12:54 -0700, Justin Maggard wrote: If your service has not switched to an Online state but has always been Is your service always in ready state, or do you mean that you are transitioning from ready-online and something goes wrong? Ready, an IP change on that

Re: Connman tethering landing page (or single dns record pointing back to itself)

2014-10-07 Thread Jukka Rissanen
Hi Olliver, On ti, 2014-10-07 at 10:44 +0200, Olliver Schinagl wrote: Hey list, for our embedded project, we are trying to use connman to take care of all the basic networking. Currently, connman is used in tethering mode to setup an access point for initial configuration of the

Re: Connman tethering landing page (or single dns record pointing back to itself)

2014-10-07 Thread Jukka Rissanen
Hi Olliver, On ti, 2014-10-07 at 12:50 +0200, Olliver Schinagl wrote: Hey Jukka, On 07-10-14 12:06, Jukka Rissanen wrote: Hi Olliver, On ti, 2014-10-07 at 10:44 +0200, Olliver Schinagl wrote: Hey list, for our embedded project, we are trying to use connman to take care of all

[PATCH v2] gdhcp: Workaround for buggy AP that handle broadcast flag incorrectly

2014-09-24 Thread Jukka Rissanen
Some routers/AP handle the DHCP broadcast flag incorrectly. This means that some AP discard the DHCP packet if broadcast flag is present and some discard it if broadcast flag is missing. The workaround is to first send DISCOVER packet in INIT state without broadcast flag. If there is a timeout we

Re: Connman behavior with marginally stabe wifi

2014-09-18 Thread Jukka Rissanen
On to, 2014-09-18 at 08:57 +, Thiemo van Engelen wrote: Hello all, Or is this typically solved in the controlling application on embedded devices and if this is the case, does anyone have some pointers and what and what not to do to get it going again without user interaction? The

[PATCH 1/4] gdhcp: Transaction id was not set when receiving L2 packet

2014-09-17 Thread Jukka Rissanen
The transaction id was always printed as 0x in debug print. --- gdhcp/client.c | 1 + 1 file changed, 1 insertion(+) diff --git a/gdhcp/client.c b/gdhcp/client.c index 88c0419..a031501 100644 --- a/gdhcp/client.c +++ b/gdhcp/client.c @@ -2257,6 +2257,7 @@ static gboolean

[PATCH 2/4] gdhcp: Transaction id is in network byte order

2014-09-17 Thread Jukka Rissanen
Print xid in host byte order so that it is easier to match the value to data in network packet. --- gdhcp/client.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gdhcp/client.c b/gdhcp/client.c index a031501..db21e01 100644 --- a/gdhcp/client.c +++ b/gdhcp/client.c @@ -2329,7

[PATCH 0/4] Misc DHCPv4 patches

2014-09-17 Thread Jukka Rissanen
. While doing the above workaround, I noticed some other issue in gdhcp code. This are fixed in patches 1-3. Cheers, Jukka Jukka Rissanen (4): gdhcp: Transaction id was not set when receiving L2 packet gdhcp: Transaction id is in network byte order gdhcp: Fix memory leak when clearing option

[PATCH 3/4] gdhcp: Fix memory leak when clearing option hash

2014-09-17 Thread Jukka Rissanen
The option list was not freed after individual options were removed. This is the valgrind report of the issue ==16972== 24 bytes in 1 blocks are definitely lost in loss record 81 of 262 ==16972==at 0x4C2745D: malloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so) ==16972==by

[PATCH] Fix fallback nameservers harder

2014-09-17 Thread Jukka Rissanen
From: Andreas Hartmetz ahartm...@gmail.com - Make sure to insert them with the enabled flag set. No need to touch the flag afterwards. When they are not supposed to be used, they are removed entirely anyway. - Insert the fallbacks also when taking some service offline. As I understand it,

[PATCH 0/2] IPv6 ipconfig fixes

2014-09-12 Thread Jukka Rissanen
and then down link to disconnecting service. Because the services are using same interface, the latter rtnl down message will effectively remove IPv6 config from the connecting service. The fix to this is to re-create the IP config back if this happens. This is fixed in patch 1. Cheers, Jukka Jukka

[PATCH 2/2] ipconfig: Do not disable kernel IPv6 support when disabling ipconfig

2014-09-12 Thread Jukka Rissanen
When ipconfig is disabled, it is not really necessary to disable IPv6 support. Doing so will lead to issues when switching from one service to another in the same network interface. User would see that the IPv6 is disabled in kernel although user has IPv6 enabled in the service. Thanks to Arjuna

[PATCH 1/2] network: Set IPv6 ipconfig if it is missing

2014-09-12 Thread Jukka Rissanen
Following scenario is possible: - we have a wifi service A connected and IPv6 is enabled for it - we connect to other IPv6 enabled service B - the first service is disconnected - kernel sends rtnl messages related to events that are done when we connect/disconnect the services - if A service's

[PATCH] dhcpv6: Remove CONFIRM message sending when connecting a link

2014-09-10 Thread Jukka Rissanen
The CONFIRM message is not sent any more as it does not make much sense because we do not save address expiration time so we cannot really know how long the saved address is valid anyway. The reply to CONFIRM message does not send expiration times back to us so we cannot get them from server

Re: [PATCH] service: Fix config file passphrase setting

2014-09-09 Thread Jukka Rissanen
Hi Patrik, On ma, 2014-09-08 at 13:38 +0300, Patrik Flykt wrote: Create a local passphrase setting function as config files would otherwise use the internal passphrase setting function which disallows modifications to immutable .config files. Perhaps it would be more logical to set the

Re: [PATCH] Fix UTF-8 ssid's

2014-08-01 Thread Jukka Rissanen
Hi Lorn, I just wonder what is the issue that this patch is fixing, isn't the current implementation working? On pe, 2014-08-01 at 19:42 +1000, Lorn Potter wrote: I found an old patch that crashed, and fixed it up. Enjoy! --- gsupplicant/supplicant.c | 20 1 file

Re: [PATCH] dhcp: Fixed Crash on Switching Network

2014-07-28 Thread Jukka Rissanen
Hi, I see only a .gif in your attachment, perhaps the actual patch is missing? Also please send the patches as inline, you can for example use git send-email to send them. Cheers, Jukka ___ connman mailing list connman@connman.net

Re: Missing default route after boot

2014-07-24 Thread Jukka Rissanen
Hi Tobias, On 24 July 2014 12:44, Tobias Henkel tobias.hen...@oss.bmw-carit.de wrote: Hi, I have both ethernet and WIFI connection configured as autoconnect. Further connman is configured with SingleConnectedTechnology = true. The use of SingleConnectedTechnology should be avoided if

Re: Routing problem

2014-07-24 Thread Jukka Rissanen
Hi, On 24 July 2014 10:21, G i...@asidev.com wrote: Hi folks, I have a strange bahaviour using connman 1.20 If possible try to upgrade to latest release (1.24), it fixes lot of bugs, although probably does not fix your issue. I have a device with an ethernet card and a wifi card Both card

Re: fix nfs boot issue from 1.19 to 1.17-reg

2014-07-23 Thread Jukka Rissanen
need recipe file as part of genivi . That’s grey area for us. Best Regards Kirankumar Bobbu -Original Message- From: Jukka Rissanen [mailto:jukka.rissa...@linux.intel.com] Sent: Wednesday, July 23, 2014 11:11 AM To: connman@connman.net Cc: Kirankumar Bobbu Subject: Re: fix

[PATCH v2] scripts: Build libppp-plugin without versioning information

2014-07-22 Thread Jukka Rissanen
There is no need to have module versioning for libppp-plugin.so file so build the plugin same way as other vpn plugins. This issue was seen when building ConnMan for Yocto. --- Makefile.plugins | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile.plugins

[PATCH v3] scripts: Build libppp-plugin without versioning information

2014-07-22 Thread Jukka Rissanen
There is no need to have module versioning for libppp-plugin.so file so build the plugin same way as other vpn plugins. This issue was seen when building ConnMan for Yocto. --- Makefile.plugins | 7 ++- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/Makefile.plugins

Re: Fallback AP

2014-07-22 Thread Jukka Rissanen
Hi Mike, On ti, 2014-07-22 at 10:29 -0400, Mike Purvis wrote: Hey all, I'm looking for a specific behaviour, and I'm wondering if there's a straightforward way for connman to provide it. The behaviour is: - Attempt to find known AP. - Attempt to connect to known AP. - After

Re: fix nfs boot issue from 1.19 to 1.17-reg

2014-07-22 Thread Jukka Rissanen
Hi Kiran, On ke, 2014-07-23 at 10:27 +0530, Kirankumar Bobbu wrote: Hi, I am getting the nfs boot issue[ connmand gets down the nfs n/w interface ] because of the connman service . ( 1.17 ) as a part of genivi 5.0.2 I want to back port the bugfix from 1.19 to 1.17. I found few

Re: [PATCH] gsupplicant: Reassign best_bss pointer when that bss is removed

2014-07-21 Thread Jukka Rissanen
Hi Hannu, On ma, 2014-07-21 at 13:09 +0300, Hannu Mallat wrote: When the bss to which best_bss points to is removed, the pointer also needs to be reassigned, or reference to already deallocated memory may happen later on. --- gsupplicant/supplicant.c | 9 - 1 file changed, 8

[PATCH] scripts: Build libppp-plugin as a plain .so file

2014-07-21 Thread Jukka Rissanen
There is no need to have module versioning for libppp-plugin.so file so build the plugin same way as other vpn plugins. This issue was seen when building ConnMan for Yocto. --- Makefile.plugins | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile.plugins

Re: tinc

2014-07-21 Thread Jukka Rissanen
Hi JC, On 21 July 2014 23:07, Jean-Charles Andlauer andla...@gmail.com wrote: Hello, I was wondering if someone already considered managing tinc vpn with connman. I think you are the first one that has asked about tinc in this ml. Could anyone recomend me appropriate documentation and

Re: ever ready state

2014-07-18 Thread Jukka Rissanen
Hi Henrique, On to, 2014-07-17 at 22:35 -0300, Henrique Abreu wrote: Hi, I installed connman from git on my Arch, but I'm having an issue. My wifi connection never goes to Online state, it's stuck on Ready. This is 100% reproducible, whenever I boot the system it never goes Online. It

Re: [PATCH v3] service: Changes to favorite property also affect the autoconnect property.

2014-07-17 Thread Jukka Rissanen
Hi Aaron, On to, 2014-07-17 at 16:42 +1000, Aaron McCarthy wrote: On Tue, 15 Jul 2014 11:42:12 Jukka Rissanen wrote: On ti, 2014-07-15 at 10:29 +1000, Aaron McCarthy wrote: The AutoConnect property is always reported as false if Favorite is false. Emit property changed for AutoConnect

Re: [PATCH v4] gdhcp: Request an actual IP address when rebinding

2014-07-17 Thread Jukka Rissanen
Hi Justin, On ke, 2014-07-16 at 11:12 -0700, Justin Maggard wrote: We need to specify a requested IP address when our DHCP client state is REBINDING as well as REQUESTING and REBOOTING; or else we end up sending a DHCP request for 0.0.0.0, which generally just gets ignored. ---

Re: [PATCH] gdhcp: adjust discovery/request timeout and retry values

2014-07-17 Thread Jukka Rissanen
Hi Pasi, On ke, 2014-07-16 at 22:30 +0300, pasi.sjoh...@jolla.com wrote: From: Pasi Sjöholm pasi.sjoh...@jollamobile.com Some dhcp servers are acting lazy (eg. Buffalo WBMR-G125) therefore 3 second timeout value for discovery or request is not enough. Adjusting the timeout value from 3

Re: [PATCH 3/5] peer: Run dhcp server when peer is supposed to be the connection master

2014-07-16 Thread Jukka Rissanen
Hi Tomasz, On ke, 2014-07-16 at 16:17 +0300, Tomasz Bursztyka wrote: This will finally handle the default case when our local device ends up as the P2P group owner and thus needs to be the dhcp server as well. --- src/peer.c | 145

Re: [PATCH 4/5] peer: Provide the proper ipv4 settings when peer is the dhcp server

2014-07-16 Thread Jukka Rissanen
Hi Tomasz, On ke, 2014-07-16 at 16:17 +0300, Tomasz Bursztyka wrote: It does not rely here on an ipconfig in the contrary to the dhcp client, so it will get the settings from the underneath dhcpv4 server. I have some difficulty understanding the explanation above. Is it possible to re-phrase

Re: [PATCH 5/5] wifi: Set peer's connection master status when on configuration state

2014-07-16 Thread Jukka Rissanen
Hi Tomasz, Could the patch #2 be put before this patch so the helper function definition would be nearer to this one? On ke, 2014-07-16 at 16:27 +0300, Tomasz Bursztyka wrote: This will let peer core starting dhcp either as a server or as a client. --- plugins/wifi.c | 2 ++ 1 file changed,

Re: [PATCH v3] service: Changes to favorite property also affect the autoconnect property.

2014-07-15 Thread Jukka Rissanen
On ti, 2014-07-15 at 10:07 +0300, Tomasz Bursztyka wrote: Hi, NACK to this patch. It's complicated and creates too much inter-dependencies between Favorite and Autoconnect. Imho, when setting Favorite to False, service-autoconnect should be set to false as well. After all, when calling

Re: [PATCH] service: Changes to favorite property also affect the autoconnect property.

2014-07-15 Thread Jukka Rissanen
Hi Aaron, On ti, 2014-07-15 at 10:28 +1000, Aaron McCarthy wrote: On Mon, 14 Jul 2014 11:20:39 Jukka Rissanen wrote: On ma, 2014-07-14 at 10:45 +1000, Aaron McCarthy wrote: The AutoConnect property is always reported as false if Favorite is false. Emit property changed for AutoConnect

  1   2   3   4   5   6   7   8   9   10   >