how to enable multiple adapters for dhcp?

2013-05-07 Thread Hahn, Matthias
Hi, I do have eth1, and wlan0 on a system. If I ignore wlan0 (connmand -I wlan0) I get an IP address for eth1 but wlan0 won't show up at all on ifconfig; if I leave wlan0 in I only get an address for wlan0 although I can manually set the IP address for eth1. Is this behavior expected? Is there a

Re: DHCPv6 client compliance to RFCs.

2013-05-07 Thread harshal patel
Hi Patrik, On Tue, May 7, 2013 at 6:02 PM, Patrik Flykt wrote: > On Tue, 2013-04-30 at 19:32 +0530, harshal patel wrote: > > And I guess, support for "Confirm Message" > > Confirm Message is implemented by commit > fd415b40a2219cfc99dca8789496ec9df8e116e6 and everything implemented is > in ConnM

Re: [RFC] dhcp: Retry DHCP request if IPv4LL

2013-05-07 Thread Justin Maggard
On Tue, Mar 19, 2013 at 2:54 PM, Justin Maggard wrote: > > On Tue, Mar 19, 2013 at 2:03 AM, Daniel Wagner > wrote: > > From: Daniel Wagner > > > > --- > > Hi, > > > > It seems we having the same problems for internal project. In our > > case the router starts slower than the embedded board. Conn

Re: [PATCH] Fix gcc compiler warning with -Wformat-security.

2013-05-07 Thread Justin Maggard
On Tue, May 7, 2013 at 12:53 PM, Marcel Holtmann wrote: > Hi Justin, > > > Cosmetic fix. > > --- > > client/agent.c |2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > diff --git a/client/agent.c b/client/agent.c > > index 921f2fc..5499d9c 100644 > > --- a/client/agent.c > > +++ b/

[PATCH v2] Fix gcc compiler warning with -Wformat-security.

2013-05-07 Thread Justin Maggard
Cosmetic fix. --- client/agent.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/agent.c b/client/agent.c index 921f2fc..5fe695f 100644 --- a/client/agent.c +++ b/client/agent.c @@ -112,7 +112,7 @@ static void pending_command_complete(char *message) { __connm

Re: [PATCH] Fix gcc compiler warning with -Wformat-security.

2013-05-07 Thread Marcel Holtmann
Hi Justin, > Cosmetic fix. > --- > client/agent.c |2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/client/agent.c b/client/agent.c > index 921f2fc..5499d9c 100644 > --- a/client/agent.c > +++ b/client/agent.c > @@ -112,7 +112,7 @@ static void pending_command_complete(cha

[PATCH] Fix gcc compiler warning with -Wformat-security.

2013-05-07 Thread Justin Maggard
Cosmetic fix. --- client/agent.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/agent.c b/client/agent.c index 921f2fc..5499d9c 100644 --- a/client/agent.c +++ b/client/agent.c @@ -112,7 +112,7 @@ static void pending_command_complete(char *message) { __connm

Need an alternate DNS mechanism

2013-05-07 Thread Gary Oliver
I have a need for a different DNS mechanism than is currently provided by connman. I'm using 1.13 which I've added to the v2012.12 Angstrom distribution I'm using for my application (1.4 was missing a few features I needed.) The device running connman will spend *most* of it's time as an isol

Re: DHCPv6 client compliance to RFCs.

2013-05-07 Thread Patrik Flykt
On Tue, 2013-04-30 at 19:32 +0530, harshal patel wrote: > And I guess, support for "Confirm Message" Confirm Message is implemented by commit fd415b40a2219cfc99dca8789496ec9df8e116e6 and everything implemented is in ConnMan 1.14. Cheers, Patrik _

Re: [PATCH] client: Check strings passed to dbus to contain valid dbus chars

2013-05-07 Thread Simon McVittie
On 06/05/13 13:18, Jukka Rissanen wrote: > Dbus aborts if we feed invalid characters to it. So do some sanity > check before that. If you can depend on libdbus 1.6 (released June 2012), you can use dbus_validate_member() for this check. g_dbus_is_member_name() in GIO is the same thing. The actual

[PATCH v3 11/12] session_policy_local: Set session identification method

2013-05-07 Thread Daniel Wagner
From: Daniel Wagner For SELinux we need to store the complete context for iptables to work. --- plugins/session_policy_local.c | 48 -- 1 file changed, 46 insertions(+), 2 deletions(-) diff --git a/plugins/session_policy_local.c b/plugins/session_policy_l

[PATCH v3 12/12] session-test: Add tests for session_policy_local

2013-05-07 Thread Daniel Wagner
From: Daniel Wagner Use the UID as identification. --- tools/session-test.c | 151 +++ 1 file changed, 151 insertions(+) diff --git a/tools/session-test.c b/tools/session-test.c index c296b95..ac91894 100644 --- a/tools/session-test.c +++ b/tools/

[PATCH v3 07/12] session_policy_local: Rework policy file handling

2013-05-07 Thread Daniel Wagner
From: Daniel Wagner The old assumption was that a config file is associtated with one session only. With introducing UID/GID support a policy might be used for several sessions. Furthermore, it was assumed that the file name is the key/ident to identify a session and a file containts exactly one

[PATCH v3 09/12] session_policy_local: Retrieve UID/GID from session user

2013-05-07 Thread Daniel Wagner
From: Daniel Wagner When the session core ask to create a configuration, then we first ask the D-Bus server which UID/GID the session belongs to. If possible we also ask for the SELinux context. Then we try to figure out which file containts the configuration for SElinux, UID or GID identificatio

[PATCH v3 08/12] session_policy_local: Remove struct create_data

2013-05-07 Thread Daniel Wagner
From: Daniel Wagner Instead we use struct policy_data from the beginning. --- plugins/session_policy_local.c | 43 ++ 1 file changed, 14 insertions(+), 29 deletions(-) diff --git a/plugins/session_policy_local.c b/plugins/session_policy_local.c index f0e4

[PATCH v3 06/12] session_policy_local: Add some more debug infos

2013-05-07 Thread Daniel Wagner
From: Daniel Wagner --- plugins/session_policy_local.c | 27 +++ 1 file changed, 19 insertions(+), 8 deletions(-) diff --git a/plugins/session_policy_local.c b/plugins/session_policy_local.c index 33152ab..6cd876c 100644 --- a/plugins/session_policy_local.c +++ b/plugins

[PATCH v3 10/12] session: Add session identification method to config

2013-05-07 Thread Daniel Wagner
From: Daniel Wagner The session core needs to the know which kind of session identifaction method has been selected in the plugin in order to use the rigth iptables rules etc. --- include/session.h | 9 + src/session.c | 4 2 files changed, 13 insertions(+) diff --git a/include

[PATCH v3 05/12] session_policy_local: Update session before unref policy

2013-05-07 Thread Daniel Wagner
From: Daniel Wagner The update flag indicates if the policy is still valid after the unref. That is when a session is using the policy and the corresponding file is removed. Just update before unref policy. --- plugins/session_policy_local.c | 14 -- 1 file changed, 4 insertions(+),

[PATCH v3 04/12] session_policy_local: Refactor SELinux context parser

2013-05-07 Thread Daniel Wagner
From: Daniel Wagner g_strplit() will eventually strdup the tokens so no need to strdup() 'context'. But we an ugly cast (from 'const unsigned char *' to 'const char *') is needed for g_strsplit() to make the compiler happy. --- plugins/session_policy_local.c | 21 - 1 file ch

[PATCH v3 01/12] session: Add session argument to create_service_entry_cb

2013-05-07 Thread Daniel Wagner
From: Daniel Wagner We need to remembrer which session this struct service_entry belongs to when removing the entries again. --- src/connman.h | 1 + src/service.c | 4 ++-- src/session.c | 8 ++-- 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/src/connman.h b/src/connman.h i

[PATCH v3 03/12] session_policy_local: Do not handle small allocation

2013-05-07 Thread Daniel Wagner
From: Daniel Wagner Let's remove the small allocations error path because glib will abort on memory exhausting anyway. Basically we remove dead code. --- plugins/session_policy_local.c | 33 - 1 file changed, 4 insertions(+), 29 deletions(-) diff --git a/plugins/

[PATCH v3 02/12] session: Do not access stale entry pointers

2013-05-07 Thread Daniel Wagner
From: Daniel Wagner When removing the entry we need to clear all references towoards it. --- src/session.c | 19 --- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/src/session.c b/src/session.c index c31fa6c..455f249 100644 --- a/src/session.c +++ b/src/session.c

[PATCH v3 00/12] Add UID/GID support to session policies

2013-05-07 Thread Daniel Wagner
From: Daniel Wagner Hi 01 session: Add session argument to create_service_entry_cb 02 session: Do not access stale entry pointers While I was working on this series I found a nasty little bug with valgrind in the session code. The session code was accessing a already freed pointer. Patch 02