Open Source Telephony
 help / color / mirror / Atom feed
From: Denis Kenzior <denkenz@gmail.com>
To: ofono@ofono.org
Subject: Re: [PATCH 1/3] PPP: Fix transmit ACCM and receive ACCM setting issue
Date: Thu, 20 Jan 2011 13:08:46 -0600	[thread overview]
Message-ID: <4D38883E.6000606@gmail.com> (raw)
In-Reply-To: <1295502354-19270-1-git-send-email-martin.xu@intel.com>

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

Hi Martin,

On 01/19/2011 11:45 PM, martin.xu(a)intel.com wrote:
> From: Martin Xu <martin.xu@intel.com>
> 
> Tramsmit ACCM and receive ACCM is mixed up.
> According to RFC1662 Section 7.1, ACCM Configuration Option is
> used to inform the peer which control characters MUST remain
> mapped when the peer sends them.
> ---
>  gatchat/ppp_lcp.c |   16 ++++++++++++++--
>  1 files changed, 14 insertions(+), 2 deletions(-)
> 
> diff --git a/gatchat/ppp_lcp.c b/gatchat/ppp_lcp.c
> index 3a80a62..cc3e231 100644
> --- a/gatchat/ppp_lcp.c
> +++ b/gatchat/ppp_lcp.c
> @@ -149,7 +149,13 @@ static void lcp_rca(struct pppcp_data *pppcp, const struct pppcp_packet *packet)
>  	while (ppp_option_iter_next(&iter) == TRUE) {
>  		switch (ppp_option_iter_get_type(&iter)) {
>  		case ACCM:
> -			ppp_set_xmit_accm(pppcp_get_ppp(pppcp), 0);
> +			/*
> +			 * RFC1662 Section 7.1
> +			 * The Configuration Option is used to inform the peer
> +			 * which control characters MUST remain mapped when
> +			 * the peer sends them.
> +			 */
> +			ppp_set_recv_accm(pppcp_get_ppp(pppcp), 0);

You still forgot to apply my earlier comment.  The recv ACCM should be
set to what is acked by the peer.  e.g.:

ppp_set_recv_accm(pppcp, get_host_long());

>  			break;
>  		default:
>  			break;

Regards,
-Denis

  parent reply	other threads:[~2011-01-20 19:08 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-01-20  5:45 [PATCH 1/3] PPP: Fix transmit ACCM and receive ACCM setting issue martin.xu
2011-01-20  5:45 ` [PATCH 2/3] Use default ACCM (0xffffffff) to trasmit package martin.xu
2011-01-20  5:45   ` [PATCH 3/3] Huawei: set Huawei EM770W modem device to 00 martin.xu
2011-01-20 18:22     ` Lucas De Marchi
2011-01-20 19:10   ` [PATCH 2/3] Use default ACCM (0xffffffff) to trasmit package Denis Kenzior
2011-01-21  1:51     ` Xu, Martin
2011-01-21 20:07       ` Denis Kenzior
2011-01-20 19:08 ` Denis Kenzior [this message]
2011-01-21  2:09   ` [PATCH 1/3] PPP: Fix transmit ACCM and receive ACCM setting issue Xu, Martin
2011-01-21 20:10     ` Denis Kenzior

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=4D38883E.6000606@gmail.com \
    --to=denkenz@gmail.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