[PATCH] doc: Fix the path to VPN config files

2013-02-25 Thread Jukka Rissanen
The correct default path is /var/lib/connman-vpn --- doc/vpn-config-format.txt |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/vpn-config-format.txt b/doc/vpn-config-format.txt index d6afcb5..f3c4569 100644 --- a/doc/vpn-config-format.txt +++

Re: [PATCH v1 2/6] neard: Add neard plugin with tethering info sharing support

2013-02-25 Thread Jukka Rissanen
On 25.02.2013 09:01, Patrik Flykt wrote: Hi, On Fri, 2013-02-22 at 15:31 +0200, Tomasz Bursztyka wrote: +typedef enum { + DE_AUTHENTICATION_TYPE, + DE_NETWORK_KEY, + DE_SSID, + DE_MAX, + DE_UNKNOWN, +} DEid; + +const struct data_elements DEs[] = { +

QoS per session

2013-02-25 Thread Frederic . Wolff
Hi All, I would like to manage QOS using HTB policy with different classes per session. Need is to allocate GID from a session to a specific HTB class and to define corresponding traffic shape. AFAIU, usually rules shall be added to iptables to mangle packets based on GID and to reuse this

Re: Unable to get the gateway of a service that is not the default route.

2013-02-25 Thread Sameer Naik
I forgot to mention one thing, i have PreferredTechnologies = ethernet in my main.conf. On Mon, Feb 25, 2013 at 5:32 PM, Sameer Naik sameer.subscripti...@damagehead.com wrote: Hello, I am using connman-1.11 on an STB platform that has an inbuilt LAN port. For WIFI i am using a wifi dongle.

[PATCH v2 3/6] config: Remove superfluous error code

2013-02-25 Thread Tomasz Bursztyka
It simplifies the code removing uselesse variable, moreover such variable has the same name as an existing label in the same function. --- src/config.c | 36 ++-- 1 file changed, 14 insertions(+), 22 deletions(-) diff --git a/src/config.c b/src/config.c index

[PATCH v2 2/6] neard: Add neard plugin with tethering info sharing support

2013-02-25 Thread Tomasz Bursztyka
RequestOOB() agent method is implemented, PushOOB() has yet to be supported. --- Makefile.plugins | 5 + configure.ac | 5 + plugins/neard.c | 382 +++ 3 files changed, 392 insertions(+) create mode 100644 plugins/neard.c diff --git

[PATCH v2 4/6] config: Make load service from each keyfile group as a function

2013-02-25 Thread Tomasz Bursztyka
--- src/config.c | 41 - 1 file changed, 24 insertions(+), 17 deletions(-) diff --git a/src/config.c b/src/config.c index cefe3c9..098ef61 100644 --- a/src/config.c +++ b/src/config.c @@ -714,15 +714,33 @@ err: return FALSE; } +static

[PATCH v2 5/6] config: Add a function to provision mutable service

2013-02-25 Thread Tomasz Bursztyka
The point here is to create a virtual configuration, which does not come from a real file. This is a handy way for plugins to be able to provision services without creating any file on the FS. In case of a wifi configuration type and if connect is requested, it will trigger a scan, thus leading

[PATCH v2 6/6] neard: Add partial support for wifi provisionning via NFC

2013-02-25 Thread Tomasz Bursztyka
PushOOB() method implementation. Currently it only supports basic open/psk based provisions. EAP has yet to be supported. --- plugins/neard.c | 273 1 file changed, 257 insertions(+), 16 deletions(-) diff --git a/plugins/neard.c

UI implemetation for connecting to a hidden network

2013-02-25 Thread Sameer Naik
Hello, I am using connman-1.11 on a STB platform. I have some general questions regarding the UI implementation for connecting to hidden wifi networks. Currently in connman, i can list all the wifi services and filter out the hidden services and let the user select the service that he/she may

Re: Unable to get the gateway of a service that is not the default route.

2013-02-25 Thread Patrik Flykt
Hi, On Mon, 2013-02-25 at 17:32 +0530, Sameer Naik wrote: I found that when i connect both the wired and wifi technologies (i.e. connect to a service for each), only one of them goes in the online state. Both will be never enter the online state under normal circumstances. eg. 1.

Re: UI implemetation for connecting to a hidden network

2013-02-25 Thread Tomasz Bursztyka
Hi Sameer, Now, this is fine if there is only one hidden network listed. Say for example there are 2 hidden networks, user would have a difficult time figuring out the networks they are suppposed to connect to. Of course you can take a best guess based on the security being used, the signal

Re: Unable to get the gateway of a service that is not the default route.

2013-02-25 Thread Sameer Naik
Hello Patrik, But shouldn't the gateway returned for each service be the route setup for the interface on which the service is running (at least display purposes) ie. 192.168.1.1 * 255.255.255.255 UH0 00 eth0 192.168.6.1 * 255.255.255.255 UH

Re: UI implemetation for connecting to a hidden network

2013-02-25 Thread Sameer Naik
Thanks Tomasz, That was really helpful. The pieces of the puzzle seem to be coming together for me. On Mon, Feb 25, 2013 at 6:13 PM, Tomasz Bursztyka tomasz.burszt...@linux.intel.com wrote: Hi Sameer, Now, this is fine if there is only one hidden network listed. Say for example there are

Re: UI implemetation for connecting to a hidden network

2013-02-25 Thread Tomasz Bursztyka
Hi Sameer, Services are grouped by security. You could have 100 hidden service, if all are wpa/wpa2 -- you will see only 1 hidden service on security psk. I had no idea about this. I imagined that each hidden service would be listed. Your response makes a lot of send to me now. Maybe we

Re: UI implemetation for connecting to a hidden network

2013-02-25 Thread Marcel Holtmann
Hi Tomasz, Services are grouped by security. You could have 100 hidden service, if all are wpa/wpa2 -- you will see only 1 hidden service on security psk. I had no idea about this. I imagined that each hidden service would be listed. Your response makes a lot of send to me now.

Re: UI implemetation for connecting to a hidden network

2013-02-25 Thread Marcel Holtmann
Hi Sameer, Now, this is fine if there is only one hidden network listed. Say for example there are 2 hidden networks, user would have a difficult time figuring out the networks they are suppposed to connect to. Of course you can take a best guess based on the security being used, the

Re: UI implemetation for connecting to a hidden network

2013-02-25 Thread Tomasz Bursztyka
Hi Marcel, Maybe we can improve the documentation then, you are not the first one who asks about that. we should do exactly that. Explain in the agent documentation how hidden WiFi networks are handled. Can you take care of this? Sure. Tomasz ___

Re: Unable to get the gateway of a service that is not the default route.

2013-02-25 Thread Sameer Naik
On Mon, Feb 25, 2013 at 7:17 PM, Patrik Flykt patrik.fl...@linux.intel.comwrote: On Mon, 2013-02-25 at 18:24 +0530, Sameer Naik wrote: 192.168.1.1 * 255.255.255.255 UH0 00 eth0 192.168.6.1 * 255.255.255.255 UH0 00 wlan0 These are individual

Re: [PATCH] doc: Update overview-api.txt

2013-02-25 Thread Tomasz Bursztyka
Hi Sameer, Hello Tomasz, In the patch you have mentioned that: A hidden service will be named as Hidden. In my tests i have found that a hidden network does not have a Name dictionary entry at all. Indeed, was too keen on trusting what my UI tells ;-) Will change that. Thanks for the