Jerome Forissier 27d7ccda94 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>
2024-10-16 11:11:57 -06:00
..
2024-10-11 11:44:48 -06:00
2024-07-15 12:12:18 -06:00
2024-07-15 12:12:18 -06:00
2024-07-15 12:12:18 -06:00
2024-07-15 12:12:18 -06:00
2024-09-12 17:35:37 +02:00
2024-07-15 12:12:18 -06:00
2024-10-11 11:44:48 -06:00
2024-07-15 12:12:18 -06:00
2024-07-15 12:12:18 -06:00
2024-10-11 11:44:48 -06:00
2024-07-19 16:48:07 -06:00
2024-07-15 12:12:18 -06:00
2024-07-15 12:12:18 -06:00
2024-07-15 12:12:18 -06:00
2024-07-15 12:12:18 -06:00
2024-10-16 11:11:56 -06:00
2024-10-14 17:58:28 -06:00
2019-12-06 16:44:20 -05:00
2024-10-14 17:58:30 -06:00
2023-12-21 08:54:37 -05:00
2023-12-21 08:54:37 -05:00
2020-08-24 14:11:31 -04:00
2024-07-15 12:12:18 -06:00
2024-10-11 11:44:47 -06:00
2024-06-30 13:58:31 +02:00
2022-01-19 18:11:34 +01:00
2024-10-14 17:58:30 -06:00
2024-09-12 17:35:37 +02:00
2019-05-05 08:48:50 -04:00