summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorMarek Vasut <[email protected]>2026-01-29 00:43:45 +0100
committerJerome Forissier <[email protected]>2026-02-06 16:42:37 +0100
commit337f50bad2ac8e1db126e4f6d372a3186bba2893 (patch)
tree893e2b6ce6c75fa1fbf900cb1a1c57c3f03df254 /scripts
parenta28db0f1ccd6d7f88e9715486376bc039975f72c (diff)
net: lwip: tftp: add support of tsize option to client
The TFTP server can report the size of the entire file that is about to be received in the Transfer Size Option, this is described in RFC 2349. This functionality is optional and the server may not report tsize in case it is not supported. Always send tsize request to the server to query the transfer size, and in case the server does respond, cache that information locally in tftp_state.tsize, otherwise cache size 0. Introduce new function tftp_client_get_tsize() which returns the cached tftp_state.tsize so clients can determine the transfer size and use it. Update net/lwip/tftp.c to make use of tftp_client_get_tsize() and avoid excessive printing of '#' during TFTP transfers in case the transfer size is reported by the server. Submitted upstream: https://savannah.nongnu.org/patch/index.php?item_id=10557 Signed-off-by: Marek Vasut <[email protected]> Acked-by: Jerome Forissier <[email protected]>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions