Hello,
I have a working FreeRTOS + TCP/IP application which manages to receive and send responses to pings.
In WireShark can see that FreeRTOS sends DHCP discover messages as both unicast and broadcast, yet there is no response received from the server (I suppose I should look for a packet directed to my MAC address, shall enter the first query in eConsiderFrameForProcessing function). What could be the reason for that?
Attached are shapshot of FreeRTOS discover request and a DHCP discover of some service (which I couldn’t turn off) for comparison.
When developing DHCP it can be handy to install a temporary DHCP-server on your own laptop. In that way you make sure to see all messages in WireShark.
Hi Hein, thank you for your answer.
As mentioned above, apparently setting ipconfigDRIVER_INCLUDED_TX_IP_CHECKSUM and ipconfigDRIVER_INCLUDED_RX_IP_CHECKSUM to 0 has solved the problem. I’ll enable the Checksum Offload Engine in the ethernet controller (LAN9220) in order to set them again to 1.
Note that the “Checksum Offload Engine” must be studie well: test it with TCP, UDP, and ICMP messages. Some EMAC’s want you to set the checksum field(s) to zero first, others don’t care about the value.
Please feel free to publish you NetworkInterface.c or send it to us directly, so I can have a look.