tftp: add optiona support for progress bar

function                                             old     new   delta
tftp_protocol                                       1662    1834    +172
progress_meter                                       212     365    +153
tftp_progress_init                                     -      14     +14
tftp_main                                            276     281      +5
tftpd_main                                           513     500     -13
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 3/1 up/down: 344/-13)           Total: 331 bytes

Signed-off-by: Magnus Damm <magnus.damm@gmail.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
Magnus Damm
2009-11-08 18:03:09 +01:00
committed by Denys Vlasenko
parent bbd423530f
commit 8bd0af9962
2 changed files with 84 additions and 18 deletions

View File

@@ -846,12 +846,19 @@ config FEATURE_TFTP_PUT
Also enable download support in tftpd, if tftpd is selected.
config FEATURE_TFTP_BLOCKSIZE
bool "Enable \"blksize\" protocol option"
bool "Enable 'blksize' and 'tsize' protocol options"
default n
depends on TFTP || TFTPD
help
Allow tftp to specify block size, and tftpd to understand
"blksize" option.
"blksize" and "tsize" options.
config FEATURE_TFTP_PROGRESS_BAR
bool "Enable tftp progress meter"
default n
depends on TFTP && FEATURE_TFTP_BLOCKSIZE
help
Show progress bar.
config TFTP_DEBUG
bool "Enable debug"