aboutsummaryrefslogtreecommitdiff
path: root/tftp.h
diff options
context:
space:
mode:
authorHervé Poussineau <hpoussin@reactos.org>2012-09-13 12:39:36 +0200
committerJan Kiszka <jan.kiszka@siemens.com>2012-09-13 12:39:36 +0200
commit65314b8cb367ade52c4722bb0683823c206ea714 (patch)
tree6af4d68e40817248fb83c68888b1d1081f2cd140 /tftp.h
parent0962988a73632918da09a44cf200ce22ab6398e8 (diff)
downloadslirp-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.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/tftp.h b/tftp.h
index b0952e2..c19b159 100644
--- a/tftp.h
+++ b/tftp.h
@@ -37,6 +37,7 @@ struct tftp_session {
struct in_addr client_ip;
uint16_t client_port;
+ uint32_t block_nr;
int timestamp;
};