All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jan Dubiec <jdx@slackware.pl>
To: linux-ppp@vger.kernel.org
Subject: Re: ppp-2.4.2 released
Date: Sun, 18 Jan 2004 04:10:21 +0000	[thread overview]
Message-ID: <87r7xxaocy.fsf@hs001.slackware.pl> (raw)
In-Reply-To: <16391.33929.908463.444449@cargo.ozlabs.ibm.com>

On  Fri, 16 Jan 2004 10:48:47 +0200, Pasi Kärkkäinen <pasik@iki.fi> wrote:
[.....]
> There's still the MTU bug (with MPPE) left..
> 
> pppd/ccp.c near line 1192:
> 
> /*
>  * We need to decrease the interface MTU by MPPE_PAD
>  * because MPPE frames **grow**.  The kernel [must]
>  * allocate MPPE_PAD extra bytes in xmit buffers.
>  */
> mtu = netif_get_mtu(f->unit);
> if (mtu)
>     netif_set_mtu(f->unit, mtu - MPPE_PAD);
> else
>     newret = CONFREJ;
[.....]
> This does not happen with all web sites.. anyway, this should be fixed since
> it's really annoying. When I remove the "- MPPE_PAD" code, everything seems
> to be fine.
> 
> Also if I change the MTU of the ppp interface (in the server) during
> ppp session (with ifconfig/ip), connections start to work well.
Quite interesting problem. IMO the code you quoted should be just
removed because according to RFC1547 MTU is only information for
higher level protocols about "the maximum allowable length for a
packet (q.v.) transmitted over a point-to-point link without incurring
network layer fragmentation." Of course a PPP implementation should be
able to handle overhead added by MPPE - in our case apropriate code is
located in drivers/net/ppp_generic.c in the kernel sources.

According to RFC1661:
 - when negotiated MRU is less than 1500 octets, a PPP implementation
   must still be able to receive at least 1500 octets,
 - when PFC is negotiated, a PPP implementation is still required to
   receive frames with uncompressed protocol field.

So why not to handle MPPE overhead without changing MTU value? I am
sure that RFC3078, unfortunately silently, assumes that.

Regards,
/J.D.
-- 
Jan Dubiec, jdx@slackware.pl, mobile: +48 602 101787

G³êboka wiara wymaga p³ytkiego rozumu i nik³ej wiedzy.

  parent reply	other threads:[~2004-01-18  4:10 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-01-16  6:28 ppp-2.4.2 released Paul Mackerras
2004-01-16  8:48 ` Pasi Kärkkäinen
2004-01-16 12:16 ` Clive Nicolson
2004-01-16 16:21 ` Arvin Schnell
2004-01-16 22:57 ` Paul Mackerras
2004-01-16 23:18 ` Bill Unruh
2004-01-16 23:18 ` Paul Mackerras
2004-01-17 10:45 ` Pasi Kärkkäinen
2004-01-18  4:10 ` Jan Dubiec [this message]
2004-02-02  9:27 ` Frank Cusack
2004-02-02  9:34 ` Frank Cusack
2004-02-02 10:56 ` Pasi Kärkkäinen
2004-02-02 18:09 ` Frank Cusack
2004-02-02 23:11 ` James Cameron
2004-02-03 11:17 ` Pasi Kärkkäinen
2004-02-03 11:24 ` Pasi Kärkkäinen
2004-02-03 14:33 ` Frank Cusack
2004-02-03 15:10 ` Pasi Kärkkäinen
2004-02-03 15:13 ` Frank Cusack
2004-02-03 16:24 ` Andy Gay
2004-02-03 16:25 ` Frank Cusack
2004-02-03 22:01 ` James Cameron
2004-02-03 22:11 ` James Cameron
2004-02-04 12:58 ` Pasi Kärkkäinen
2004-02-04 13:00 ` Pasi Kärkkäinen
2004-02-04 13:01 ` Pasi Kärkkäinen
2004-03-02 23:13 ` Bernard Blackham
2004-03-03  9:09 ` Pasi Kärkkäinen

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=87r7xxaocy.fsf@hs001.slackware.pl \
    --to=jdx@slackware.pl \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.