lwip-users
[Top][All Lists]
Advanced

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

Re: [lwip-users] win32 porting contrib: double IP address


From: Giuseppe Modugno
Subject: Re: [lwip-users] win32 porting contrib: double IP address
Date: Fri, 10 Nov 2017 09:36:13 +0100
User-agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0

Il 09/11/2017 17:43, Joel Cunningham ha scritto:
On 11/09/2017 03:41 AM, Giuseppe Modugno wrote:
Il 08/11/2017 16:34, Joel Cunningham ha scritto:
The ping works well if I launch "ping 192.168.1.156" command from *another* computer on the same network.
You're most likely running into a checksum offload problem since you can't contact the LwIP stack from the Windows host, but you CAN from another machine.  The Window's TCP/IP stack is going to use checksum offloading for IPv4/UDP/TCP and during the transmit path, Winpcap will capture them before they go to hardware (where checksum is added).  Then they will fail checksum validation in LwIP and be discarded.

You can verify this easily by opening up wireshark and capturing on the interface.  Wireshark (also using winpcap) will capture the packets at the same point and you can verify the checksum is missing.
You're right.

If this is the case, you can disable checksum offloading in Windows for TX.
What is the procedure to disable checksum offloading in Windows for TX?

It varies depending on your network card.  Easiest way is if the adapter has an option to disable it.  I have one like this.  For Win 7, Control Panel -> Network and Internet -> Network and Sharing Center -> Change Adapter Settings -> Right click adapter -> Properties -> Configure -> Advanced.  Then I have options like 'TCP Checksum Offload (IPv4)' which I can set to Disabled, RX or TX Disabled/Enabled
Yes, I have those kind of options. However there are many "offload" options: TCP, UDP, ARP, IPv4...




reply via email to

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