FreeRTOS+TCP Impossible to use ipconfigARP_USE_CLASH_DETECTION without ipconfigDHCP_FALL_BACK_AUTO_IP

FreeRTOSIPConfigDefaults.h includes the following (at line 2848):

#if ( ipconfigIS_ENABLED( ipconfigARP_USE_CLASH_DETECTION ) )
    #error ipconfigARP_USE_CLASH_DETECTION is unused when ipconfigDHCP_FALL_BACK_AUTO_IP is disabled
#endif

While clash detection is required if fallback auto IP is enabled, this check actually prohibits clash detection unless fallback auto IP is also enabled.

In my case I’m using either static IP or DHCP without fallback - but I implement IP clash detection and reporting in my application.

My suggestion is to make the above check a warning not an error.

Thank you @njones for reporting this, and welcome to forum! I agree: this should be a #warning and not a fatal #error.

If you like, you can turn this into a PR. If not, I don’t mind making the change.

Thanks

I’ll take you up on your offer to make the change, thanks for your efforts improving FreeRTOS!

Please have a look at pull request #1299.
It will take a while before the change is merged with the main branch.

Regards

2 Likes