diff options
| author | Jerome Forissier <[email protected]> | 2025-06-25 15:19:16 +0200 |
|---|---|---|
| committer | Jerome Forissier <[email protected]> | 2025-07-08 11:07:37 +0200 |
| commit | 9501274f94f02ee55059814033ea727180e310cb (patch) | |
| tree | e5bc70bd18077accd12ce2d9bc6380049436105f /include | |
| parent | 1361d9f4f00ad0a6e481cc947b75e8788982878f (diff) | |
lwip: add net_lwip_dns_resolve()
Add a helper fonction to convert an IP address (supplied as a text
string) or a host name to an ip_addr_t.
Signed-off-by: Jerome Forissier <[email protected]>
Diffstat (limited to 'include')
| -rw-r--r-- | include/net-lwip.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/net-lwip.h b/include/net-lwip.h index 58cd38423f8..f54f23471f1 100644 --- a/include/net-lwip.h +++ b/include/net-lwip.h @@ -38,6 +38,7 @@ struct netif *net_lwip_new_netif_noip(struct udevice *udev); void net_lwip_remove_netif(struct netif *netif); struct netif *net_lwip_get_netif(void); int net_lwip_rx(struct udevice *udev, struct netif *netif); +int net_lwip_dns_resolve(char *name_or_ip, ip_addr_t *ip); /** * wget_validate_uri() - varidate the uri |
