mirror of
https://github.com/u-boot/u-boot.git
synced 2025-04-17 10:24:49 +00:00

Implement do_tftpb(). This implementation of the tftp command supports an optional port number. For example: tftp 192.168.0.30:9069:file.bin It also supports taking the server IP from ${tftpserverip} if defined, before falling back to ${serverip}. Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org> Acked-by: Ilias Apalodimas <ilias.apalodimas@linaro.org> Tested-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
21 lines
535 B
C
21 lines
535 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[]);
|
|
|
|
#endif /* __NET_LWIP_H__ */
|