mirror of
https://xff.cz/git/u-boot/
synced 2025-10-26 16:13:55 +01:00
net: tftpput: implement tftp logic
This adds logic to tftp.c to implement the tftp 'put' command, and updates the README. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
committed by
Wolfgang Denk
parent
1aec244acf
commit
1fb7cd498e
@@ -408,6 +408,9 @@ restart:
|
||||
NetBootFileXferSize = 0;
|
||||
switch (protocol) {
|
||||
case TFTPGET:
|
||||
#ifdef CONFIG_CMD_TFTPPUT
|
||||
case TFTPPUT:
|
||||
#endif
|
||||
/* always use ARP to get server ethernet address */
|
||||
TftpStart(protocol);
|
||||
break;
|
||||
@@ -1794,6 +1797,7 @@ static int net_check_prereq(enum proto_t protocol)
|
||||
case NFS:
|
||||
#endif
|
||||
case TFTPGET:
|
||||
case TFTPPUT:
|
||||
if (NetServerIP == 0) {
|
||||
puts("*** ERROR: `serverip' not set\n");
|
||||
return 1;
|
||||
|
||||
Reference in New Issue
Block a user