diff options
-rw-r--r-- | include/net.h | 2 | ||||
-rw-r--r-- | net/bootp.c | 2 | ||||
-rw-r--r-- | net/tftp.c | 3 | ||||
-rw-r--r-- | net/tftp.h | 2 |
4 files changed, 4 insertions, 5 deletions
diff --git a/include/net.h b/include/net.h index c5a1c65fbc..28c3f8c2d1 100644 --- a/include/net.h +++ b/include/net.h @@ -385,7 +385,7 @@ extern int NetRestartWrap; /* Tried all network devices */ enum proto_t { BOOTP, RARP, ARP, TFTPGET, DHCP, PING, DNS, NFS, CDP, NETCONS, SNTP, - TFTPSRV + TFTPSRV, TFTPPUT }; /* from net/net.c */ diff --git a/net/bootp.c b/net/bootp.c index ab03d2ea1a..e04547a607 100644 --- a/net/bootp.c +++ b/net/bootp.c @@ -164,8 +164,8 @@ static void auto_load(void) return; } #endif - TftpStart(); } + TftpStart(TFTPGET); } #if !defined(CONFIG_CMD_DHCP) diff --git a/net/tftp.c b/net/tftp.c index 7e50893486..2bab1f7cfd 100644 --- a/net/tftp.c +++ b/net/tftp.c @@ -599,8 +599,7 @@ TftpTimeout(void) } -void -TftpStart(void) +void TftpStart(enum proto_t protocol) { char *ep; /* Environment pointer */ diff --git a/net/tftp.h b/net/tftp.h index 3abdf7bc26..c51aa253c4 100644 --- a/net/tftp.h +++ b/net/tftp.h @@ -16,7 +16,7 @@ */ /* tftp.c */ -extern void TftpStart (void); /* Begin TFTP get */ +void TftpStart(enum proto_t protocol); /* Begin TFTP get/put */ #ifdef CONFIG_CMD_TFTPSRV extern void TftpStartServer(void); /* Wait for incoming TFTP put */ |