diff options
| author | Jerome Forissier <[email protected]> | 2024-10-16 12:04:05 +0200 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2024-10-16 11:11:56 -0600 |
| commit | 4d4d7838127ec8a95d256285759e8cc781041408 (patch) | |
| tree | 55618cc1557ed1072d311ae5f7b8c1bb2ce0e4bb /include | |
| parent | 5634ecc88e9fc9bd1bd422861ee4d9dbac851b32 (diff) | |
net: lwip: add TFTP support and tftpboot command
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 <[email protected]>
Acked-by: Ilias Apalodimas <[email protected]>
Tested-by: Ilias Apalodimas <[email protected]>
Diffstat (limited to 'include')
| -rw-r--r-- | include/net-common.h | 4 | ||||
| -rw-r--r-- | include/net-lwip.h | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/include/net-common.h b/include/net-common.h index cbcac178c82..fd7c5e7b488 100644 --- a/include/net-common.h +++ b/include/net-common.h @@ -459,6 +459,10 @@ static inline struct in_addr env_get_ip(char *var) int net_init(void); +/* NET compatibility */ +enum proto_t; +int net_loop(enum proto_t protocol); + /** * dhcp_run() - Run DHCP on the current ethernet device * diff --git a/include/net-lwip.h b/include/net-lwip.h index cfd06726577..37744b0e2cd 100644 --- a/include/net-lwip.h +++ b/include/net-lwip.h @@ -6,6 +6,10 @@ #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); |
