Hi nkumar, on reception, you won't ALWAYS receive a single pbuf, but probably a chained pbuf. This means, you have to ALWAYS look for p->tot_len, not just p->len, to actually get ALL the data you were sent. To extract ALL data in a pbuf chain, use pbuf_copy_partial(), it is easier than travelling the pbuf chains: pbuf_copy_partial(p, towhere, p->tot_len, 0); To ACK all the data: tcp_recved(tpcp, p->tot_len); Regards
_______________________________________________ lwip-users mailing list lwip-users@nongnu.org https://lists.nongnu.org/mailman/listinfo/lwip-users