Piero 74 wrote: > here THE LAST report. > i did the test using "manual sending" on sw on serial port.... > > after some clicks (...means.. after some quick send operation on uart, > and, from lwip to pc tcp client) the problem appears: > i saw tcp retransmission with checksum error again!!!
Perhaps you are just getting serial errors for the packets you read from serial before lwip even touches them. You could experiment with verifying the checksum yourself at the point you forward the packet to see when this is happening. Remember to only check starting from the IP header i.e. not including any link level headers. "lwip/ipv4/inet_chksum.h" has an inet_chksum_pbuf() function, And you can use pbuf_header to move the header pointer around and then back again. You will also have to temporarily set the checksum to 0 for the calculation. Jifl -- eCosCentric Limited http://www.eCosCentric.com/ The eCos experts ** Visit us at ESC Silicon Valley <http://www.embedded.com/esc/sv> ** ** April 15-17 2008, Booth 3012, San Jose McEnery Convention Center ** Barnwell House, Barnwell Drive, Cambridge, UK. Tel: +44 1223 245571 Registered in England and Wales: Reg No 4422071. ------["Si fractum non sit, noli id reficere"]------ Opinions==mine _______________________________________________ lwip-users mailing list [email protected] http://lists.nongnu.org/mailman/listinfo/lwip-users
