[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [lwip-users] PPP: how to enable the MRU negotiation?
From: |
narke |
Subject: |
Re: [lwip-users] PPP: how to enable the MRU negotiation? |
Date: |
Tue, 13 Sep 2011 21:49:02 +0800 |
On 13 September 2011 14:03, Simon Goldschmidt <address@hidden> wrote:
> I'll try to help, anyway:
>
> Having had a quick look at RFC 1661, it seems like we would always have to
> support an MRU of 1500 at least (chapter 6.1 in that RFC).
>
> - PPP_MRU is set to 1500, which also is used as the rx/tx buffer size (if I
> see that correctly).
> - PPP_MAXMRU has been changed from 16384 (pppd) to 1500 (lwIP), but I don't
> think that's a problem as 2 ppp instances seem to need to actively agree on
> that to make it happen
> - PPP_MINMRU is still 128
> - PPP_DEFMRU has been changed from 1500 (pppd) to 296 (lwIP).
>
> Now from reading the code, to me it seems as lwIP would send PPP_DEFMRU as
> the MRU option but go on normally with the connection receiving
> 1500-byte-sized packets, or am I wrong there?
>
> In any case, you could just add "#define PPP_DEFMRU 1500" to your lwipopts.h
> and you'd have the original pppd behaviour.
>
> Simon
> --
> Empfehlen Sie GMX DSL Ihren Freunden und Bekannten und wir
> belohnen Sie mit bis zu 50,- Euro! https://freundschaftswerbung.gmx.de
>
> _______________________________________________
> lwip-users mailing list
> address@hidden
> https://lists.nongnu.org/mailman/listinfo/lwip-users
>
Okay, thanks. I will also read the code and come to you if have some
findings. Only one thing at the moment: Where did see the 1500 was
used as rx/tx buffers?
Best Regards,
--
Life is the only flaw in an otherwise perfect nonexistence
-- Schopenhauer
narke
public key at http://subkeys.pgp.net:11371 (address@hidden)