From 1fb7cd498e6a5a7e14e1ac5518262a35ed293f3e Mon Sep 17 00:00:00 2001 From: Simon Glass Date: Mon, 24 Oct 2011 18:00:07 +0000 Subject: 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 --- net/net.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'net/net.c') diff --git a/net/net.c b/net/net.c index c778a8065..84f28bf32 100644 --- a/net/net.c +++ b/net/net.c @@ -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; -- cgit v1.2.3-70-g09d2