[PATCH master] net: dhcp: mark interface up before resolving TFTP server name

Sascha Hauer s.hauer at pengutronix.de
Mon Nov 23 23:01:41 PST 2026


On Fri, 20 Nov 2026 10:54:08 +0100, Ahmad Fatoum wrote:
> When the DHCP server sends option 66 (TFTP server name) with a hostname
> instead of an IP address, dhcp_set_result() calls resolv() to look it
> up. Since commit f0624a7015 ("net: Do not route traffic to interfaces
> that are not up"), net_route() skips interfaces whose ifup flag is not
> set, but dhcp() only sets that flag after dhcp_set_result() returns.
> 
> Fix this by mark the interface up in dhcp_set_result() once address,
> netmask, gateway and nameserver are configured, right before resolving.
> 
> [...]

Applied, thanks!

[1/1] net: dhcp: mark interface up before resolving TFTP server name
      https://git.pengutronix.de/cgit/barebox/commit/?id=c0446cfcd924 (link may not be stable)

Best regards,
-- 
Sascha Hauer <s.hauer at pengutronix.de>




More information about the barebox mailing list