diff options
author | Nguyễn Thái Ngọc Duy <pclouds@gmail.com> | 2010-09-14 12:56:34 +1000 |
---|---|---|
committer | Nguyễn Thái Ngọc Duy <pclouds@gmail.com> | 2010-09-14 12:56:34 +1000 |
commit | c31744ca1a86b2276c37c6d9a884660185debed6 (patch) | |
tree | bb051c35c3430a3793ceef173a01cb522fb4ae05 /networking/tftp.c | |
parent | 1a286d510c2125bdab601ce47afd4d27b6ce6f41 (diff) | |
parent | e329089c62ed813e97344f8c61d7dc34221fd5ee (diff) | |
download | busybox-w32-c31744ca1a86b2276c37c6d9a884660185debed6.tar.gz busybox-w32-c31744ca1a86b2276c37c6d9a884660185debed6.tar.bz2 busybox-w32-c31744ca1a86b2276c37c6d9a884660185debed6.zip |
Merge branch 'origin/master' (early part)
Diffstat (limited to 'networking/tftp.c')
-rw-r--r-- | networking/tftp.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/networking/tftp.c b/networking/tftp.c index ab4e25967..43ae13647 100644 --- a/networking/tftp.c +++ b/networking/tftp.c | |||
@@ -24,7 +24,8 @@ | |||
24 | 24 | ||
25 | #define TFTP_BLKSIZE_DEFAULT 512 /* according to RFC 1350, don't change */ | 25 | #define TFTP_BLKSIZE_DEFAULT 512 /* according to RFC 1350, don't change */ |
26 | #define TFTP_BLKSIZE_DEFAULT_STR "512" | 26 | #define TFTP_BLKSIZE_DEFAULT_STR "512" |
27 | #define TFTP_TIMEOUT_MS 50 | 27 | /* Was 50 ms but users asked to bump it up a bit */ |
28 | #define TFTP_TIMEOUT_MS 100 | ||
28 | #define TFTP_MAXTIMEOUT_MS 2000 | 29 | #define TFTP_MAXTIMEOUT_MS 2000 |
29 | #define TFTP_NUM_RETRIES 12 /* number of backed-off retries */ | 30 | #define TFTP_NUM_RETRIES 12 /* number of backed-off retries */ |
30 | 31 | ||
@@ -582,7 +583,8 @@ static int tftp_protocol( | |||
582 | * "An option not acknowledged by the server | 583 | * "An option not acknowledged by the server |
583 | * must be ignored by the client and server | 584 | * must be ignored by the client and server |
584 | * as if it were never requested." */ | 585 | * as if it were never requested." */ |
585 | bb_error_msg("server only supports blocksize of 512"); | 586 | if (blksize != TFTP_BLKSIZE_DEFAULT) |
587 | bb_error_msg("falling back to blocksize "TFTP_BLKSIZE_DEFAULT_STR); | ||
586 | blksize = TFTP_BLKSIZE_DEFAULT; | 588 | blksize = TFTP_BLKSIZE_DEFAULT; |
587 | io_bufsize = TFTP_BLKSIZE_DEFAULT + 4; | 589 | io_bufsize = TFTP_BLKSIZE_DEFAULT + 4; |
588 | } | 590 | } |