[Top][All Lists]

[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:39:55 +0200
User-agent: Mutt/1.5.21 (2010-09-15)

Hello Charles,

On Thu, Apr 10, 2014 at 05:30:12PM +0000, address@hidden wrote:
> Sylvain,
> It seems the patch makes things worse - PPP connection couldn’t 
> build-up anymore. Below is the complete log message after applying the 
> patch. It seems the code stalled at very early stage.

Hummm, this is a quick'n'dirty check patch, but I checked it still 

> *** FreeRTOS Demo Started! ***
> netif_set_ipaddr: netif addrnetif: IP address of interface  set to
> netif: netmask of interface  set to
>  eteif: GW sasd dbreeissn go fc hinatnegrefdace
>   snete ttiof
>  nIePti fa:d darddeesds  iontfe rifnatcee pp IP addr 0.0.0.r0 netfmask 
> gw
> ace  set to

This is not the point, but this garbage implies you are breaking lwIP 
threading rules.

> Regarding the patch, my compiler complains the following statement
>       u8_t *payload = next_pbuf->payload + PBUF_LINK_HLEN;
> so I made a small change to make it work with my compiler
>      u8_t *payload = (u8_t*)next_pbuf->payload + PBUF_LINK_HLEN; 

Could you try with the following instead:

  u8_t *payload = next_pbuf->payload;
  payload += PBUF_LINK_HLEN;


Attachment: signature.asc
Description: Digital signature

reply via email to

[Prev in Thread] Current Thread [Next in Thread]