summaryrefslogtreecommitdiff
path: root/include/net-lwip.h
diff options
context:
space:
mode:
authorTim Harvey <tharvey@gateworks.com>2025-05-30 08:38:25 -0700
committerJerome Forissier <jerome.forissier@linaro.org>2025-07-08 11:05:29 +0200
commita383869d6b58b3d66a91460a8b1a6fdcc09a1fe9 (patch)
tree09b85b5d95f66bf1f8d02c9605386e8e61816bde /include/net-lwip.h
parente4e97f70526dd9f367f54a38f38115726336cd6a (diff)
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>
Diffstat (limited to 'include/net-lwip.h')
-rw-r--r--include/net-lwip.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/net-lwip.h b/include/net-lwip.h
index b762956e8fd..6b5eb1990fb 100644
--- a/include/net-lwip.h
+++ b/include/net-lwip.h
@@ -17,6 +17,7 @@ static inline int eth_is_on_demand_init(void)
int eth_init_state_only(void); /* Set active state */
+int net_lwip_dns_init(void);
int net_lwip_eth_start(void);
struct netif *net_lwip_new_netif(struct udevice *udev);
struct netif *net_lwip_new_netif_noip(struct udevice *udev);