[Top][All Lists]

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

Re: [lwip-users] TCP keeps re-transmitting but no ACK packet after SYN,

From: Mohsin
Subject: Re: [lwip-users] TCP keeps re-transmitting but no ACK packet after SYN, SYN+ACK
Date: Sun, 5 Apr 2015 22:23:44 -0700 (MST)

Sergio R. Caprile wrote
>> For ethernet packets, I'm claculating checksum in hardware but for TCP
>> and
>> IP, its is in software only.
>>>* My suggestions:*
>>>* 1) Check for this*
>>>*      #define CHECKSUM_GEN_IP                 1*
>>I checked above Macro in my opt.h and it is set to 1.
> Then you have just found your problem.
> If you are calculating IP checksums in hardware, you must not
> calculate them in lwIP.
> Set
> *#define CHECKSUM_GEN_IP                 0*

Actually, I don't calculate IP checksums in hardware but in software only as
I mentioned previously which is quoted above.
So, I have set  
            #define CHECKSUM_GEN_IP   1

Hence, if I set it to 0 then also it is not working and IP checksum comes
out to be 0x000000.

Still I'm unable to find the cause of IP checksum error in my implementation

Mohsin Kesarani

View this message in context: 
Sent from the lwip-users mailing list archive at Nabble.com.

reply via email to

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