diff options
author | Hervé Poussineau <hpoussin@reactos.org> | 2012-09-13 12:39:36 +0200 |
---|---|---|
committer | Jan Kiszka <jan.kiszka@siemens.com> | 2012-09-13 12:39:36 +0200 |
commit | 65314b8cb367ade52c4722bb0683823c206ea714 (patch) | |
tree | 6af4d68e40817248fb83c68888b1d1081f2cd140 /tftp.h | |
parent | 0962988a73632918da09a44cf200ce22ab6398e8 (diff) | |
download | slirp-65314b8cb367ade52c4722bb0683823c206ea714.zip slirp-65314b8cb367ade52c4722bb0683823c206ea714.tar.gz slirp-65314b8cb367ade52c4722bb0683823c206ea714.tar.bz2 |
slirp: Handle more than 65535 blocks in TFTP transfers
RFC 1350 does not mention block count roll-over. However, a lot of TFTP servers
implement it to be able to transmit big files, so do it also.
Current block size is 512 bytes, so TFTP files were limited to 32 MB.
Signed-off-by: Hervé Poussineau <hpoussin@reactos.org>
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Diffstat (limited to 'tftp.h')
-rw-r--r-- | tftp.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -37,6 +37,7 @@ struct tftp_session { struct in_addr client_ip; uint16_t client_port; + uint32_t block_nr; int timestamp; }; |