diff options
author | Jerome Forissier <jerome.forissier@linaro.org> | 2024-10-16 12:04:12 +0200 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2024-10-16 11:11:57 -0600 |
commit | 27d7ccda94fa03d15d4d4f6f359d9fa09c697679 (patch) | |
tree | 556ff14dceb090e0ef39c048c0b1a4b5d3ad7650 /lib/mbedtls | |
parent | c8d19c53b6be41e323265dff1b28e59a5cb81264 (diff) |
net: lwip: tftp: add support of blksize option to client
The TFTP protocol uses a default block size of 512 bytes. This value is
sub-optimal for ethernet devices, which have a MTU (Maximum Transmission
Unit) of 1500 bytes. When taking into acount the overhead of the IP and
UDP layers, this leaves 1468 bytes for the TFTP payload.
This patch introduces a new function: tftp_client_set_blksize() which
may be used to change the block size from the default. It has to be
called after tftp_client_init() and before tftp_get(). If the server
does not support the option, the client will still accept to receive
512-byte blocks.
Submitted upstream: https://savannah.nongnu.org/patch/index.php?10462
Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org>
Acked-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
Diffstat (limited to 'lib/mbedtls')
0 files changed, 0 insertions, 0 deletions