iPXE - Open Source Boot Firmware

[tftp] Allow fetching larger files by wrapping block number
authorStefan Hajnoczi <stefanha@gmail.com>
Sun, 10 Jan 2010 19:05:17 +0000 (19:05 +0000)
committerMarty Connor <mdc@etherboot.org>
Fri, 15 Jan 2010 20:54:36 +0000 (15:54 -0500)
commitdd99ee95cb513384a13c2be486f684e4a1606ea9
treef3d7a4a42263d0b4f82fa1e32da2aba1bfcb9145
parent734061e9c60103439e13d72c68e50ee362f3ba91
[tftp] Allow fetching larger files by wrapping block number

This patch adds TFTP support for files larger than 65535 blocks by
wrapping the 16-bit block number.

Reported-by: Mark Johnson <johnson.nh@gmail.com>
Signed-off-by: Stefan Hajnoczi <stefanha@gmail.com>
Signed-off-by: Marty Connor <mdc@etherboot.org>
src/net/udp/tftp.c