]> git.ipfire.org Git - people/ms/u-boot.git/commit - net/tftp.c
net: TFTP: variables cleanup and addition
authorAlbert ARIBAUD \(3ADEV\) <albert.aribaud@3adev.fr>
Sun, 11 Oct 2015 22:02:57 +0000 (00:02 +0200)
committerJoe Hershberger <joe.hershberger@ni.com>
Wed, 28 Oct 2015 19:42:24 +0000 (14:42 -0500)
commitf5fb734672f3fc78f63ed6a14cbdca2251ba3415
tree54dfcde44bfd817bd8c7c2d653d91ab8ac81ec80
parent677f970bc62a661690b3431543d5a5d5e682ba70
net: TFTP: variables cleanup and addition

TFTP source and destination port variable names are
'tftpsrcp' and 'tftpdstp' in the code, but 'tftpsrcport'
and 'tftpdstport' in the README file. Fix the README.

Add environment variable 'tftptimeoutcountmax'. As per the
comments about the global variable tftp_timeout_count_max,
make sure tftptimeoutcountmax is nonnegative.

Introduce configuration option CONFIG_NET_TFTP_VARS,
which controls whether environment variables tftpblocksize,
tftptimeout, and tftptimoueoutcountmax are read by the TFTP
client code. CONFIG_NET_TFTP_VARS defaults to y but can be
set to n by targets with to tight size contraints.

Make bf527-ezkit set CONFIG_NET_TFTP_VARS to n to keep the
target size below limit.
README
configs/bf527-ezkit_defconfig
net/Kconfig
net/tftp.c