diff options
author | Hervé Poussineau <hpoussin@reactos.org> | 2012-09-10 20:52:25 +0200 |
---|---|---|
committer | Jan Kiszka <jan.kiszka@siemens.com> | 2012-09-13 12:38:14 +0200 |
commit | 78be056628c76ff73eedeade86fde44b97343c79 (patch) | |
tree | 01d4590c4a86c2a145e8d983d95cc0276f61778c /slirp/tftp.h | |
parent | e56afbc54a2132c56931f44bae1992c28119944f (diff) |
slirp: improve TFTP performance
When transferring a file, keep it open during the whole transfer,
instead of opening/closing it for each block.
Signed-off-by: Hervé Poussineau <hpoussin@reactos.org>
Reviewed-by: Aurelien Jarno <aurelien@aurel32.net>
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Diffstat (limited to 'slirp/tftp.h')
-rw-r--r-- | slirp/tftp.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/slirp/tftp.h b/slirp/tftp.h index 72e5e91bef..9c364ea28e 100644 --- a/slirp/tftp.h +++ b/slirp/tftp.h @@ -33,6 +33,7 @@ struct tftp_t { struct tftp_session { Slirp *slirp; char *filename; + int fd; struct in_addr client_ip; uint16_t client_port; |