u-boot-brain/net
Max Krummenacher 7628afebe9 tftp.c: fix CONFIG_TFTP_TSIZE for small files
CONFIG_TFTP_TSIZE should limit a tftp downloads progress to 50 '#'
chars. Make this work also for small files.

If the file size is small, i.e. smaller than 2 tftp block sizes the
number of '#' can get much larger. i.e. with a 1 byte file 65000
characters are printed, with a 512 byte file around 500.

When using CONFIG TFTP BLOCKSIZE together with CONFIG_IP_DEFRAG the
issue is more notable.

Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
Reviewed-by: Marek Vasut <marex@denx.de>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
2015-08-12 14:15:28 -05:00
..
arp.c net: cosmetic: Fix checkpatch.pl failures in net.c 2015-04-18 11:11:35 -06:00
arp.h net: cosmetic: Clean up ARP variables and functions 2015-04-18 11:11:33 -06:00
bootp.c net: Fix incorrect DHCP/BOOTP packets on 64-bit systems 2015-04-18 11:11:35 -06:00
bootp.h net: Convert protocol structures to use explicit sizes 2015-04-18 11:11:35 -06:00
cdp.c net: cosmetic: Fix checkpatch.pl failures in net.c 2015-04-18 11:11:35 -06:00
cdp.h net: cosmetic: Clean up CDP variables and functions 2015-04-18 11:11:34 -06:00
checksum.c net: Add a separate file for IP checksumming 2015-01-23 21:44:59 -07:00
dns.c net: cosmetic: Fix checkpatch.pl failures in net.c 2015-04-18 11:11:35 -06:00
dns.h net: cosmetic: Clean up DNS variables and functions 2015-04-18 11:11:34 -06:00
eth.c net: Allow drivers to return -ENOSYS with the write_hwaddr() method 2015-07-21 17:39:41 -06:00
Kconfig Allow CONFIG_REGEX to be disabled when CONFIG_NET 2015-07-08 18:26:39 -04:00
link_local.c net: cosmetic: Fix checkpatch.pl failures in net.c 2015-04-18 11:11:35 -06:00
link_local.h net: Add link-local addressing support 2012-05-23 17:53:08 -05:00
Makefile net: Add a separate file for IP checksumming 2015-01-23 21:44:59 -07:00
net_rand.h net: use common rand()/srand() functions 2012-07-07 14:07:32 +02:00
net.c net: Use env callbacks for net variables 2015-05-21 09:13:20 -04:00
nfs.c net: cosmetic: Fix checkpatch.pl failures in net.c 2015-04-18 11:11:35 -06:00
nfs.h net: cosmetic: Clean up NFS variables and functions 2015-04-18 11:11:33 -06:00
ping.c net: cosmetic: Fix checkpatch.pl failures in net.c 2015-04-18 11:11:35 -06:00
ping.h SPDX License cleanup for LiMon imported files 2014-10-10 09:44:43 -04:00
rarp.c net: cosmetic: Fix checkpatch.pl failures in net.c 2015-04-18 11:11:35 -06:00
rarp.h net: cosmetic: Clean up RARP variables and functions 2015-04-18 11:11:33 -06:00
sntp.c dm: net: rtc: Support using driver model for rtc in sntp 2015-05-05 20:58:40 -06:00
sntp.h net: cosmetic: Clean up SNTP variables and functions 2015-04-18 11:11:34 -06:00
tftp.c tftp.c: fix CONFIG_TFTP_TSIZE for small files 2015-08-12 14:15:28 -05:00
tftp.h net: cosmetic: Clean up TFTP variables and functions 2015-04-18 11:11:33 -06:00