[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [lwip-users] tcp_enqueue problem, using socket:
From: |
Jonathan Larmour |
Subject: |
Re: [lwip-users] tcp_enqueue problem, using socket: |
Date: |
Thu, 20 Mar 2008 10:29:35 +0000 |
User-agent: |
Thunderbird 1.5.0.12 (X11/20070530) |
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
- Re: [lwip-users] tcp_enqueue problem, using socket:, (continued)
- Re: [lwip-users] tcp_enqueue problem, using socket:, Jonathan Larmour, 2008/03/19
- Re: [lwip-users] tcp_enqueue problem, using socket:, address@hidden, 2008/03/19
- Re: [lwip-users] tcp_enqueue problem, using socket:, Piero 74, 2008/03/20
- Re: [lwip-users] tcp_enqueue problem, using socket:, Piero 74, 2008/03/20
- Re: [lwip-users] tcp_enqueue problem, using socket:, Piero 74, 2008/03/20
- Re: [lwip-users] tcp_enqueue problem, using socket:, Piero 74, 2008/03/20
- Re: [lwip-users] tcp_enqueue problem, using socket:, Piero 74, 2008/03/20
- Re: [lwip-users] tcp_enqueue problem, using socket:,
Jonathan Larmour <=
- Re: [lwip-users] tcp_enqueue problem, using socket:, Jonathan Larmour, 2008/03/20
- Re: [lwip-users] tcp_enqueue problem, using socket:, Piero 74, 2008/03/20
- Re: [lwip-users] tcp_enqueue problem, using socket:, Jonathan Larmour, 2008/03/20
- Re: [lwip-users] tcp_enqueue problem, using socket:, Piero 74, 2008/03/20
- Re: [lwip-users] tcp_enqueue problem, using socket:, Jonathan Larmour, 2008/03/20
- Re: [lwip-users] tcp_enqueue problem, using socket:, Piero 74, 2008/03/20
- RE: [lwip-users] tcp_enqueue problem, using socket:, Bill Auerbach, 2008/03/20
- Re: [lwip-users] tcp_enqueue problem, using socket:, Jonathan Larmour, 2008/03/20
- RE: [lwip-users] tcp_enqueue problem, using socket:, Bill Auerbach, 2008/03/19
- Re: [lwip-users] tcp_enqueue problem, using socket:, Jonathan Larmour, 2008/03/19