OpenVPN does not work?

Zheng, Jeff jeff.zheng at intel.com
Tue Jan 25 19:58:04 PST 2011


Hi Daniel,

Attached is the log. Connmand still crashes with latest code. 

Bests
Jeff

> -----Original Message-----
> From: Daniel Wagner [mailto:wagi at monom.org]
> Sent: Tuesday, January 25, 2011 1:58 AM
> To: Zheng, Jeff
> Cc: connman at connman.net
> Subject: Re: OpenVPN does not work?
> 
> Hi Jeff,
> 
> Can you apply the attached patch and post the log? I'm really lost
> what's going on there. Maybe with the additional DBS we see more.
> 
> cheers,
> daniel
> 
> From f30c38f5f832546a7a24e5317baade1db59249b0 Mon Sep 17 00:00:00
> 2001
> From: Daniel Wagner <wagi at monom.org>
> Date: Mon, 24 Jan 2011 18:43:35 +0100
> Subject: [PATCH] OpenVPN: Add a few DBGs
> 
> --
>  plugins/openvpn.c |    2 ++
>  plugins/vpn.c     |    6 ++++++
>  2 files changed, 8 insertions(+), 0 deletions(-)
> 
> diff --git a/plugins/openvpn.c b/plugins/openvpn.c
> index 24aa0bc..08bc4f4 100644
> --- a/plugins/openvpn.c
> +++ b/plugins/openvpn.c
> @@ -188,6 +188,8 @@ static int ov_notify(DBusMessage *msg, struct
> connman_provider *provider)
>  		return VPN_STATE_FAILURE;
>  	}
> 
> +	DBG("provider %p", provider);
> +
>  	if (strcmp(reason, "up"))
>  		return VPN_STATE_DISCONNECT;
> 
> diff --git a/plugins/vpn.c b/plugins/vpn.c
> index 278e0ea..0f78d89 100644
> --- a/plugins/vpn.c
> +++ b/plugins/vpn.c
> @@ -137,6 +137,8 @@ static void vpn_newlink(unsigned flags, unsigned
> change, void *user_data)
>  	struct connman_provider *provider = user_data;
>  	struct vpn_data *data = connman_provider_get_data(provider);
> 
> +	DBG("provider %p data %p", provider, data);
> +
>  	if ((data->flags & IFF_UP) != (flags & IFF_UP)) {
>  		if (flags & IFF_UP) {
>  			data->state = VPN_STATE_READY;
> @@ -163,6 +165,8 @@ static void vpn_notify(struct connman_task *task,
>  	if (vpn_driver_data == NULL)
>  		return;
> 
> +	DBG("provider %p data %p", provider, data);
> +
>  	state = vpn_driver_data->vpn_driver->notify(msg, provider);
>  	switch (state) {
>  	case VPN_STATE_CONNECT:
> @@ -291,6 +295,8 @@ static int vpn_connect(struct connman_provider
> *provider)
>  	DBG("%s started with dev %s",
>  		vpn_driver_data->provider_driver.name, data->if_name);
> 
> +	DBG("provider %p data %p", provider, data);
> +
>  	data->state = VPN_STATE_CONNECT;
> 
>  	return -EINPROGRESS;
> --
> 1.7.3.3

-------------- next part --------------
A non-text attachment was scrubbed...
Name: connman.log.gz
Type: application/x-gzip
Size: 12483 bytes
Desc: connman.log.gz
URL: <http://lists.01.org/pipermail/connman/attachments/20110126/88d6b017/attachment.gz>


More information about the connman mailing list