]> git.ipfire.org Git - thirdparty/u-boot.git/commit
net: lwip: move dns init to common function
authorTim Harvey <tharvey@gateworks.com>
Fri, 30 May 2025 15:38:25 +0000 (08:38 -0700)
committerJerome Forissier <jerome.forissier@linaro.org>
Tue, 8 Jul 2025 09:05:29 +0000 (11:05 +0200)
commita383869d6b58b3d66a91460a8b1a6fdcc09a1fe9
tree09b85b5d95f66bf1f8d02c9605386e8e61816bde
parente4e97f70526dd9f367f54a38f38115726336cd6a
net: lwip: move dns init to common function

move the dns init including setting the dns servers from env vars to a
common function as other commands that support hostname lookups will
need this.

Signed-off-by: Tim Harvey <tharvey@gateworks.com>
[jf: add CMD_DNS conditional to support NET_LWIP && !CMD_DNS]
Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org>
include/net-lwip.h
net/lwip/dns.c
net/lwip/net-lwip.c