> The above line is wrong: size should print p->tot_len, not p->len!
You have just found the origin of all my troubles! > Multiple packets may get combined to a linked list of pbufs and passed > to your callback as one. Other than that, I don't see anything wrong. I had another reference to p->len, again wrong, so I was reading fewer data than available, that simple. I just wondered from where I took that, since the httpd in contrib uses properly p->tot_len. The answer is I copied some parts from the original webserver in Xilinx' XAPP1026 application note, that uses "p->len"; after all the smaller error in their (heavily flawed) code, which became the bigger (for now!) in mine. Thanks again Simon, Lou _______________________________________________ lwip-users mailing list [email protected] http://lists.nongnu.org/mailman/listinfo/lwip-users
