mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-03 10:17:21 +00:00

Add CMD_DNS when NET_LWIP is enabled to provide the dns command using lwIP. Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org> Acked-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
23 lines
686 B
C
23 lines
686 B
C
/* SPDX-License-Identifier: GPL-2.0+ */
|
|
|
|
#ifndef __NET_LWIP_H__
|
|
#define __NET_LWIP_H__
|
|
|
|
#include <lwip/ip4.h>
|
|
#include <lwip/netif.h>
|
|
|
|
enum proto_t {
|
|
TFTPGET
|
|
};
|
|
|
|
struct netif *net_lwip_new_netif(struct udevice *udev);
|
|
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 do_dhcp(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]);
|
|
int do_dns(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]);
|
|
int do_ping(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]);
|
|
|
|
#endif /* __NET_LWIP_H__ */
|