Open Source Telephony
 help / color / mirror / Atom feed
From: Guillaume Zajac <guillaume.zajac@linux.intel.com>
To: ofono@ofono.org
Subject: Re: [PATCH 05/18] gatppp: add g_at_ppp_set_suspend_function() definition
Date: Thu, 31 Mar 2011 11:04:00 +0200	[thread overview]
Message-ID: <4D944380.60309@linux.intel.com> (raw)
In-Reply-To: <4D939895.5070303@gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1111 bytes --]

Hi Denis,

On 30/03/2011 22:54, Denis Kenzior wrote:
> Hi Guillaume,
>
> On 03/25/2011 10:25 AM, Guillaume Zajac wrote:
>> ---
>>   gatchat/gatppp.c |    8 ++++++++
>>   1 files changed, 8 insertions(+), 0 deletions(-)
>>
>> diff --git a/gatchat/gatppp.c b/gatchat/gatppp.c
>> index 993b5ea..9df6b8e 100644
>> --- a/gatchat/gatppp.c
>> +++ b/gatchat/gatppp.c
>> @@ -467,6 +467,14 @@ void g_at_ppp_set_debug(GAtPPP *ppp, GAtDebugFunc func, gpointer user_data)
>>   	ppp->debug_data = user_data;
>>   }
>>
>> +void g_at_ppp_set_suspend_function(GAtPPP *ppp, GAtSuspendFunc func, gpointer user_data)
>> +{
>> +	if (ppp == NULL)
>> +		return;
>> +
>> +	g_at_hdlc_set_suspend_function(ppp->hdlc, func, user_data);
>> +}
>> +
> This is really not enough, you must also shut down the read watch on the
> TUN device, so that we don't try to forward packets from TUN to HDLC
> while we're suspended.
>

I will add into g_at_ppp_suspend():
-->ppp_net_suspend() to shut down read watch

and into g_at_ppp_resume():
-->ppp_net_resume() to resume read watch

Kind regards,
Guillaume


      reply	other threads:[~2011-03-31  9:04 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-25 15:25 [PATCH 05/18] gatppp: add g_at_ppp_set_suspend_function() definition Guillaume Zajac
2011-03-30 20:54 ` Denis Kenzior
2011-03-31  9:04   ` Guillaume Zajac [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4D944380.60309@linux.intel.com \
    --to=guillaume.zajac@linux.intel.com \
    --cc=ofono@ofono.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox