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 Regards, Mohsin Kesarani -- View this message in context: http://lwip.100.n7.nabble.com/TCP-keeps-re-transmitting-but-no-ACK-packet-after-SYN-SYN-ACK-tp24039p24281.html Sent from the lwip-users mailing list archive at Nabble.com. _______________________________________________ lwip-users mailing list lwip-users@nongnu.org https://lists.nongnu.org/mailman/listinfo/lwip-users