]> git.ipfire.org Git - thirdparty/u-boot.git/commit
net: lwip: dns: Call env_set() from dns loop instead of found callback
authorJonas Karlman <jonas@kwiboo.se>
Sat, 17 Jan 2026 00:24:39 +0000 (00:24 +0000)
committerJerome Forissier <jerome.forissier@arm.com>
Wed, 4 Feb 2026 08:04:36 +0000 (09:04 +0100)
commit3299bffc7c8e57059be3738bc53c7709b7f981be
tree8fc7d9343452cd1ef164d887cd972c93914e6f21
parentf3b600efb339e5419cb10cd8177d84c7c36ee4cd
net: lwip: dns: Call env_set() from dns loop instead of found callback

The lwIP dns command handle env_set() calls from the found callback and
printf() to console in the dns loop. Making it more complex than it
needs to be.

Simplify and ensure any environment variable that is being set is the
same value that would have been printed on console.

There should not be any intended change in behavior, besides the change
from using ip4addr helper to using version less ipaddr helper.

Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
Reviewed-by: Jerome Forissier <jerome.forissier@arm.com>
net/lwip/dns.c