When I added copying of pbuf data to application buffer inside TCP
receive callback, one interesting thing happened - TX side got
completely unresponsive!
I have been copying it like this:
if(p->tot_len < BUF_SIZE) {
if (pbuf_copy_partial(p, (void*)buf, p->tot_len, 0) != p->tot_len) {
xil_printf("total copied != p->tot_len\n");
}
}
I guess that using pbuf_copy_partial is a valid way to do the copying to
application buffer, isn't it? This seems like some memory corruption.
_______________________________________________
lwip-users mailing list
lwip-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/lwip-users