aboutsummaryrefslogtreecommitdiff
path: root/slirp/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
commit4aa401f39e048e71020cceb59f126ab941095a42 (patch)
treec3cf40360a16b1401e80141c0c1ac1969950144c /slirp/tftp.h
parent78be056628c76ff73eedeade86fde44b97343c79 (diff)
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 'slirp/tftp.h')
-rw-r--r--slirp/tftp.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/slirp/tftp.h b/slirp/tftp.h
index 9c364ea28e..51704e4874 100644
--- a/slirp/tftp.h
+++ b/slirp/tftp.h
@@ -37,6 +37,7 @@ struct tftp_session {
struct in_addr client_ip;
uint16_t client_port;
+ uint32_t block_nr;
int timestamp;
};