AutoIp + DHCP


I use an AutoIp mecanism if the DHCP fails. I put a startup 10 seconds delay and a low priority to AutoIp to be sure that DHCP will work. It works well on my development board, but when I tried it on a final product, DHCP always fails and it get an AutoIp address.

Has somebody successfully implemented a DHCP + AutoIp mecanism?



Ok, with this config there is no more pb :

dhcp_config.number_of_retries = -1;
dhcp_config.dhcp_restart_type = ACE_RESTART_DHCP_DISCOVER;
dhcp_config.need_bcast_response = TRUE;
dhcp_config.do_init_delay = FALSE;
dhcp_config.arp_reply_timeout = 15;