AnsweredAssumed Answered

Can't unbind ip address

Question asked by Jesper Evertsson on Sep 9, 2015
Latest reply on Sep 24, 2015 by Jesper Evertsson

Hi, we are trying to implement a feature in our product that makes it so that if a DHCP server is unavailable we want to periodically poll the DHCP server for eternity until we obtain an answer (untill then we use our fallback address). The problem is that when we find the DHCP-server we want to unbind our old ip address before we start using our new. We have tried using ipcfg_unbind(BSP_DEFAULT_ENET_DEVICE), but we still end up with having 2 ip addresses. Our fallback address + the one we got from the DHCP server. We also tried calling ipcfg_release_device(BSP_DEFAULT_ENET_DEVICE) and then calling ipcfg_init_device(), but that does the exact same thing. From what I can read in the documentation both these functions should remove the existing ip address, but it's not working for us.