Hello,
See the attached dhcp debug logs for 1.4.1 and latest.

After some digging into the code I found a difference between 1.4.1 and
latest versions considering the DHCP. In dhcp_recv function when DHCP_ACK is
received and DHCP state is REBOOTING:

- In 1.4.1 version: dhcp_bind is called, that binds an interface to the IP
received, the subnet mask and gateway were not requested in options in DHCP
request after link up event, thus previous values are used for them. And
thus replug does not cause the problem.

- In latest: dhcp_handle_ack is called before the dhcp_bind, it clears
subnet mask and gateway of an interface, thus causing the dhcp_bind to alter
and loose the subnet and gateway, as they were not requested in options. I
end up with lost Gateway and Netmask and has no more routing outside the
local network.

Probably this causing the problem.
dhcp_debug_1_4_1.txt
<http://lwip.100.n7.nabble.com/file/n24583/dhcp_debug_1_4_1.txt>  
dhcp_debug_latest.txt
<http://lwip.100.n7.nabble.com/file/n24583/dhcp_debug_latest.txt>  





--
View this message in context: 
http://lwip.100.n7.nabble.com/DHCP-reboot-after-link-up-event-tp24573p24583.html
Sent from the lwip-users mailing list archive at Nabble.com.

_______________________________________________
lwip-users mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/lwip-users

Reply via email to