Any ideas why subdomain dns would be failing in 2.0.7 + tcp?
I migrated from 2.0.1, I just copied the files over, perhaps I missed something.
Wireshark shows the query going out and the reply coming in, so somewhere it is getting lost.
Hi Erik, in your other post I saw your
FreeRTOSIPConfig.h with the following line:
#define ipconfigDNS_CACHE_NAME_LENGTH ( 16 )
This limits the maximum length of domain names. If you double this value, you will find a domain like “mobile.google.com”.
In FreeRTOS+TCP 2.0.7 there are many more checks for correctness of incoming packets and also bound checking.
ipconfigDNS_CACHE_NAME_LENGTH bytes will be declared on the program stack.
I had ipconfigDNS_CACHE_NAME_LENGTH set to 16. The older version was hard coded to 128 length so it worked.