Hi Sylvain:
I had already used the pppos_input_tcpip with no success. Now, after your last email, I tried again and the problem is the same:
"...
while(1) {
sizeRead = sio_read(ppp->ppp_sio, buffer, 1000);
if (sizeRead > 0) {
pppos_input_tcpip(ppp->ppp, buffer, sizeRead);
}
}
..."
Please, about your comment:
"... you failed to understand how PBUF_POOL buffers are working, what you are doing here is a buffer overflow. PBUF_POOL are
*chained* buffers, that's explained in the very first basic lwIP documentation. I have serious doubt about how you are using the stack,
which might explain why you seem to have packet corruption. ..."
I would like remember you the code used to reproduce the PPP/TCP error is practically the same of the lwip git-repos (lwip e contrib), last Friday (jan/15/2016) version, only the "simhost.c" and "lwipopts.h" files with little modifications (attached again), or better, I am not using my code to show you the reported problem, but the behavior is the same.
Thanks.
Norberto