linux-ppp.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: David Fernandez <david.fernandez.work@googlemail.com>
To: linux-ppp@vger.kernel.org
Subject: Re: SOLVED: kernel-mode PPPoE does not seem able to work with MPPE.
Date: Fri, 17 Nov 2017 10:16:15 +0000	[thread overview]
Message-ID: <4be36cc0-0ee3-94e1-9953-6fdb0f0041c0@googlemail.com> (raw)
In-Reply-To: <7587137d-f9ae-a4ac-843e-6688af5ff017@googlemail.com>

On 06/11/17 18:31, James Carlson wrote:
> On 11/06/17 09:59, David Fernandez wrote:
>> Yes, the code could be deleted, I just wanted somebody to check and say
>> that there is no point in yet putting a warning in the log for this...
> RFC3078 7.2 says that the receiver changes its key on receiving a "flag"
> packet (where (count&0xff) = 0xff).  It says nothing about the
> transmitter setting the FLUSHED flag in this case.  That flag is used
> *only* when a sequence error is detected.
>
> So I think the original code was wrong (it should not have insisted on
> the flag being set), and the new code without the message and without
> the error handling is correct.
>
> It _might_ be a good idea to check and at least comment the sending
> code.  It should not be setting the FLUSHED flag merely because it is
> sending a flag packet ... but, for compatibility with broken Linux MPPE
> implementations already deployed, it might have to continue doing that.
>
> It's a shame documents like this don't go through WG review with
> multiple independent implementations.  This is the sort of spec
> misinterpretation that a good open review is designed to catch.
>
Hi James,

I think you are right, the flushed bit is only used for sequence errors 
in stateful mode, as that is the only way to change keys in a 
deterministic manner.

I'm runing now into the problem of packet loss, and I guess I'll have to 
modify the implementation in order to use the flushed bit instead of a 
reset-ack packet to decide if we have to send another reset-req after a 
timeout...

I think this will become a formal patch, so let me know what ettiquete 
bits are required and I'll prepare it for review and submission to 
whomever can approve and commit.

Regards


      parent reply	other threads:[~2017-11-17 10:16 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-10-26 10:39 SOLVED: kernel-mode PPPoE does not seem able to work with MPPE David Fernandez
2017-11-06 10:55 ` David Fernandez
2017-11-06 14:19 ` Charlie Brady
2017-11-06 14:59 ` David Fernandez
2017-11-06 18:31 ` James Carlson
2017-11-17 10:16 ` David Fernandez [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=4be36cc0-0ee3-94e1-9953-6fdb0f0041c0@googlemail.com \
    --to=david.fernandez.work@googlemail.com \
    --cc=linux-ppp@vger.kernel.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;
as well as URLs for NNTP newsgroup(s).