lwip-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [lwip-users] tcp_data packets


From: Jonathan Larmour
Subject: Re: [lwip-users] tcp_data packets
Date: Wed, 09 Jan 2008 14:26:39 +0000
User-agent: Thunderbird 1.5.0.12 (X11/20070530)

ramash wrote:
> Hi all,
>     I have been using lwip code to send TCP packets to a client program
> through serial port.
>     I am facing the problem that sequence number becomes five bytes 
>     Initially for TCP packets client send connect packet and server will
> send accept packet by taking sequence number as acknowledge number and
> acknowledge number as sequence number,and it is follow on all the packets.
> 
>     First the acknowledge number send by acknowledge packet for accept
> packet is 0x0000196f,after the first data packet send (400 bytes size)the
> acknowledge number(0x00001964 + 190(400) = 0x00001aff).this will go on for
> further packet,at one iteration the acknowledge number is 0x00007d5d6f.
>      Then i solved this problem by masking the 0x7d and made the next byte
> as 0x5d + 0x20.but a five to ten packets after this packet the sequence
> number of server(lwip) is junk/garbage value.

I'm not quite sure what you're saying here. You're saying the ACK number is
0x00007d5d6f - the non-zero bytes are only three bytes, so do you mean that
the ACK field in the TCP header has increased by a further byte, which is zero?

No-one else has seen this for sure. What version of lwIP are you using and
where did you get it from?

Jifl
-- 
eCosCentric Limited      http://www.eCosCentric.com/     The eCos experts
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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]