Re: [PATCH] network: IPv6 must go through disconnect state before idle.

2011-02-15 Thread Samuel Ortiz
Hi Jukka,

On Fri, Feb 11, 2011 at 03:22:53PM +0200, Jukka Rissanen wrote:
> ---
> Hi Samuel,
> 
> please apply this patch as without it the system will not go offline.
> The patch adds DISCONNECT state for IPv6 that should be entered before
> IDLE state. Eventually the IPv6 disconnection should be handled in
> connection.c as you pointed out in IRC but that probably needs to
> wait until Daniel's element removal patches are commited.
Sure. I applied the patch now, thanks a lot.

Cheers,
Samuel.

-- 
Intel Open Source Technology Centre
http://oss.intel.com/
___
connman mailing list
connman@connman.net
http://lists.connman.net/listinfo/connman


[PATCH] network: IPv6 must go through disconnect state before idle.

2011-02-11 Thread Jukka Rissanen
---
Hi Samuel,

please apply this patch as without it the system will not go offline.
The patch adds DISCONNECT state for IPv6 that should be entered before
IDLE state. Eventually the IPv6 disconnection should be handled in
connection.c as you pointed out in IRC but that probably needs to
wait until Daniel's element removal patches are commited.

Regards,
Jukka


 src/network.c |7 +++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/src/network.c b/src/network.c
index 5bba620..be2cae5 100644
--- a/src/network.c
+++ b/src/network.c
@@ -880,6 +880,13 @@ static gboolean set_connected(gpointer user_data)
CONNMAN_SERVICE_STATE_IDLE,
CONNMAN_IPCONFIG_TYPE_IPV4);
 
+   /* TODO: eventually the IPv6 disconnect state should be handled
+* in connection.c
+*/
+   __connman_service_indicate_state(service,
+   CONNMAN_SERVICE_STATE_DISCONNECT,
+   CONNMAN_IPCONFIG_TYPE_IPV6);
+
__connman_service_indicate_state(service,
CONNMAN_SERVICE_STATE_IDLE,
CONNMAN_IPCONFIG_TYPE_IPV6);
-- 
1.7.0.4

___
connman mailing list
connman@connman.net
http://lists.connman.net/listinfo/connman