summaryrefslogtreecommitdiff
path: root/slirp/tcp_input.c
diff options
context:
space:
mode:
authorHervé Poussineau <hpoussin@reactos.org>2012-09-13 07:55:01 +0200
committerJan Kiszka <jan.kiszka@siemens.com>2012-09-14 00:26:55 +0200
commit95b1ad7ad86793c27ab8e9987be69571937900d1 (patch)
tree3f5bdb71ea0025647bec3e7b69fe4d2a6c780eae /slirp/tcp_input.c
parenteb7faf0e3a45b0a0089035f972080ca4bd2e15ce (diff)
downloadqemu-95b1ad7ad86793c27ab8e9987be69571937900d1.tar.gz
slirp: Implement TFTP Blocksize option
This option is described in RFC 1783. As this is only an optional field, we may ignore it in some situations and handle it in some others. However, MS Windows 2003 PXE boot client requests a block size of the MTU (most of the times 1472 bytes), and doesn't work if the option is not acknowledged (with whatever value). According to the RFC 1783, we cannot acknowledge the option with a bigger value than the requested one. As current implementation is using 512 bytes by block, accept the option with a value of 512 if the option was specified, and don't acknowledge it if it is not present or less than 512 bytes. Signed-off-by: Hervé Poussineau <hpoussin@reactos.org> Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Diffstat (limited to 'slirp/tcp_input.c')
0 files changed, 0 insertions, 0 deletions