Re: [PATCH] dhcpv6: Check NULL pointer dereference

2012-05-10 Thread Patrik Flykt
On Thu, 2012-05-10 at 09:43 +0300, Jukka Rissanen wrote: --- Hi, I missed these fixes, sorry about that. Thanks Henrique for pointing that out. Patch applied, thanks! Patrik ___ connman mailing list connman@connman.net

OpenVPN Routing - Part 2

2012-05-10 Thread Daniel Wagner
Hi Jukka, after a bit of debugging I think I start to understand what's happening. This mail only documents my current state of confusion. The setting --- I have a OpenVPN server which pushes some additional routes to its clients. That means we not only get the default gateway to

Crash Log

2012-05-10 Thread Daniel Wagner
Hi, Yesterday, I was able to trigger a crash. I got it when I plugged out the wifi usb adapter. Yes, nasty but still no reason to crash :) Any ideas what's wrong? cheers, daniel connmand[11400]: src/dnsproxy.c:udp_listener_event() Received 32 bytes (id 0xc02d) connmand[11400]:

Re: Wifi won't connect

2012-05-10 Thread Julien Pichon
I've noticed something while debugging the code. The path flow goes through auto_connect_service but goes in this condition and return FALSE. if (service-favorite == FALSE) { if (preferred == TRUE) go next_service; return FALSE; === } I think

Re: Wifi won't connect

2012-05-10 Thread Tomasz Bursztyka
Hi, I've noticed something while debugging the code. The path flow goes through auto_connect_service but goes in this condition and return FALSE. if (service-favorite == FALSE) { if (preferred == TRUE) go next_service; return FALSE;=== } I

Re: Wifi won't connect

2012-05-10 Thread Tomasz Bursztyka
Le 10/05/2012 12:36, Julien Pichon a écrit : On Thu, May 10, 2012 at 12:24:25PM +0300, Tomasz Bursztyka wrote: Hi, I've noticed something while debugging the code. The path flow goes through auto_connect_service but goes in this condition and return FALSE. if (service-favorite == FALSE) {

Re: Wifi won't connect

2012-05-10 Thread Tomasz Bursztyka
Hi, configuring at run time through scripts (unless you are running connman in a box on which you did not plug any input device, display... But then connman is not really thought to work that way) That is exactly what I plan to do. I want a linux box without dispaly and input device, connecting

Re: Wifi won't connect

2012-05-10 Thread Patrik Flykt
On Wed, 2012-05-09 at 16:40 +0200, Julien Pichon wrote: cat /var/lib/connman/my.config [service_mywifi] Type = wifi SSID = MY_WIFI Passphrase = mypass Add a [global] section according to doc/config-format.txt. Cheers, Patrik ___ connman

Re: Wifi won't connect

2012-05-10 Thread Patrik Flykt
On Thu, 2012-05-10 at 10:45 +0200, Julien Pichon wrote: if (service-favorite == FALSE) { if (preferred == TRUE) go next_service; return FALSE; === } Since the service list is sorted, services with favorite = TRUE go first in the list.

Re: Wifi won't connect

2012-05-10 Thread Jukka Rissanen
Hi On 05/10/2012 01:53 PM, Tomasz Bursztyka wrote: Hi, configuring at run time through scripts (unless you are running connman in a box on which you did not plug any input device, display... But then connman is not really thought to work that way) That is exactly what I plan to do. I want a

Re: Wifi won't connect

2012-05-10 Thread Tomasz Bursztyka
Le 10/05/2012 14:11, Jukka Rissanen a écrit : Hi On 05/10/2012 01:53 PM, Tomasz Bursztyka wrote: Hi, configuring at run time through scripts (unless you are running connman in a box on which you did not plug any input device, display... But then connman is not really thought to work that way)

Re: Wifi won't connect

2012-05-10 Thread Jukka Rissanen
On 05/10/2012 02:20 PM, Tomasz Bursztyka wrote: Le 10/05/2012 14:11, Jukka Rissanen a écrit : Hi On 05/10/2012 01:53 PM, Tomasz Bursztyka wrote: Hi, configuring at run time through scripts (unless you are running connman in a box on which you did not plug any input device, display... But

Re: Wifi won't connect

2012-05-10 Thread Tomasz Bursztyka
By default autoconnect is set ON when a service is created. ok, though again we changed that behavior. I might not go to tax office before work next time. Tomasz ___ connman mailing list connman@connman.net

Re: Wifi won't connect

2012-05-10 Thread Patrik Flykt
On Thu, 2012-05-10 at 14:55 +0300, Tomasz Bursztyka wrote: ok, though again we changed that behavior. I don't think so. It's been like this every time a service got created. It's just that this has been masked by the need to connect to it once in order to ask possible passphrases, save it and

[PATCH] gdhcp: Message type is required in DHCPv4

2012-05-10 Thread Jukka Rissanen
--- gdhcp/client.c |5 - 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/gdhcp/client.c b/gdhcp/client.c index c308b83..a51857f 100644 --- a/gdhcp/client.c +++ b/gdhcp/client.c @@ -1897,8 +1897,11 @@ static gboolean listener_event(GIOChannel *channel, GIOCondition

[PATCH] gdhcp: Make sure we have the message before accessing it

2012-05-10 Thread Jukka Rissanen
--- gdhcp/client.c |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/gdhcp/client.c b/gdhcp/client.c index a51857f..ec1b2a2 100644 --- a/gdhcp/client.c +++ b/gdhcp/client.c @@ -1865,6 +1865,9 @@ static gboolean listener_event(GIOChannel *channel, GIOCondition condition,

Re: Wifi won't connect

2012-05-10 Thread Julien Pichon
On Thu, May 10, 2012 at 02:04:04PM +0300, Patrik Flykt wrote: On Wed, 2012-05-09 at 16:40 +0200, Julien Pichon wrote: cat /var/lib/connman/my.config [service_mywifi] Type = wifi SSID = MY_WIFI Passphrase = mypass Add a [global] section according to doc/config-format.txt. Cheers,

Re: Agent Request Input Timeout / wap_supplicant BSS expiration

2012-05-10 Thread Patrik Flykt
Hi, On Wed, 2012-05-09 at 15:46 +, Julien Massot wrote: Here, we use the default timeout for a dbus call, It doesn't seems to be very accurate but I have something like 25-30sec. Perhaps we can change the -1 in DBUS_TIMEOUT_INFINITE, to avoid this issue. Something longer than

Re: OpenVPN Routing - Part 2

2012-05-10 Thread Daniel Wagner
Hi Jukka I retested this now with the git version of OpenVPN and guess what it just works out of the box. Hurray! So this openvpn-2.2.1-2.fc16.x86_64 version has some problems. Maybe something for the README? What do you think? cheers, daniel ___

Re: Crash Log

2012-05-10 Thread Daniel Wagner
and here is another one. I can't remember how I trigged this one... [...] connmand[11631]: src/service.c:service_indicate_state() service 0xd77750 old configuration - new ready/association = ready connmand[11631]: plugins/nmcompat.c:service_state_changed() service 0xd77750 state 4

Connman and DNSSL question

2012-05-10 Thread Elena Tebesoi
Hi all, I am currently working with connman and especially IPv6 . Looking at the code for handling RDNSS and DNSSL, I believe I spotted an issue and I want to check my understanding of the code with you. Shortly said, for Router Advertisement messages which have only DNSSL option/s (so no RDNSS