[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [lwip-users] ppp-new IP forwarding only works one direction (Etherne
From: |
Sylvain Rochet |
Subject: |
Re: [lwip-users] ppp-new IP forwarding only works one direction (Ethernet to PPP) |
Date: |
Thu, 10 Apr 2014 20:29:35 +0200 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
Hello Simon,
On Thu, Apr 10, 2014 at 08:12:00PM +0200, Simon Goldschmidt wrote:
> Sylvain Rochet wrote:
> > Oh dear, now I see what is happening.
> >
> > PPP header is smaller than Ethernet header
> > [..]
> > This is actually a lwIP design issue, the only way we can fix that is by
> > adding a configuration option so pbuf from PPP are allocated with enough
> > extra space so a Ethernet header will fit in place of a PPP header.
>
> The lwIP way to solve this is to defin PBUF_LINK_HLEN to be big enough
> for both sides. We do waste some bytes that way, but it should work.
>
> However, I just saw that PPP (new?) seems to allocate many pbufs as
> PBUF_RAW, which kind of breaks the link-header size calculation and
> thus might make my suggestion not work...
>
> Anyway, we might want to fix this in a generic way...
PPPoE use PBUF_LINK, PPPoL2TP use PBUF_TRANSPORT, PPPoS use PBUF_RAW, it
all makes sense at first sight and IP forwarding should work for PPPoE
and PPPoL2TP. Maybe we should allocate a PBUF_LINK for PPPoS as well.
Sylvain
signature.asc
Description: Digital signature
- Re: [lwip-users] ppp-new IP forwarding only works one direction (Ethernet to PPP), (continued)
- Re: [lwip-users] ppp-new IP forwarding only works one direction (Ethernet to PPP), Sylvain Rochet, 2014/04/11
- Re: [lwip-users] ppp-new IP forwarding only works one direction (Ethernet to PPP), LMao, 2014/04/11
- Re: [lwip-users] ppp-new IP forwarding only works one direction (Ethernet to PPP), Sylvain Rochet, 2014/04/11
- Re: [lwip-users] ppp-new IP forwarding only works one direction (Ethernet to PPP), Sylvain Rochet, 2014/04/12
- Re: [lwip-users] ppp-new IP forwarding only works one direction (Ethernet to PPP), LMao, 2014/04/14
- Re: [lwip-users] ppp-new IP forwarding only works one direction (Ethernet to PPP), Sylvain Rochet, 2014/04/14
- Re: [lwip-users] ppp-new IP forwarding only works one direction (Ethernet to PPP), LMao, 2014/04/15
- Re: [lwip-users] ppp-new IP forwarding only works one direction (Ethernet to PPP), Sylvain Rochet, 2014/04/15
- Re: [lwip-users] ppp-new IP forwarding only works one direction (Ethernet to PPP), Sylvain Rochet, 2014/04/10
- Re: [lwip-users] ppp-new IP forwarding only works one direction (Ethernet to PPP), Simon Goldschmidt, 2014/04/10
- Re: [lwip-users] ppp-new IP forwarding only works one direction (Ethernet to PPP),
Sylvain Rochet <=