Hello Charles,

On Thu, Apr 10, 2014 at 05:30:12PM +0000, l...@moog.com 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 
works.


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

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;


Sylvain

Attachment: signature.asc
Description: Digital signature

_______________________________________________
lwip-users mailing list
lwip-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/lwip-users

Reply via email to