Am 06.11.2019 um 15:16 schrieb vinu:
Hi all,
I have come across an issue related to DHCP and link status.
The device does not restart the dhcp negotiation whenever the link goes down
and up automatically. Note that I have an interrupt callback for PHY link
up/down.
How should the dhcp be handled when the link up/down event occurs? I have
seen many posts regarding the same, but i just wanted to make sure that we
are doing this in the correct way. Please help.
Make sure you get from the PHY interrupt into tcpip_thread and call
dhcp_network_changed() from there. That should be all.
Regards,
Simon
I just read that dhcp_network_changed() shall be used in case the lease time
has not expired and dhcp_start shall be used if the dhcp server
changes/reboots. Please correct me if i am wrong.
regards,
Vinu
--
Sent from: http://lwip.100.n7.nabble.com/lwip-users-f3.html
_______________________________________________
lwip-users mailing list
lwip-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/lwip-users
_______________________________________________
lwip-users mailing list
lwip-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/lwip-users