Geefu Wang (gfwang)
2003-Apr-11 07:27 UTC
[syslinux] Please help: how to enable tftp-hpa (0.33) for large file
Hi: I compiled and run tftp-hpa-0.33 on my Solaris 2.7 but it does not support file size larger than 16MB. The tftpd time out when 16MB of file is transfered. Can anyone offer a hint for how to enable tftp-hpa to support large file size ? Very appreciate Geefu Wang
H. Peter Anvin
2003-Apr-11 07:51 UTC
[syslinux] Please help: how to enable tftp-hpa (0.33) for large file
Geefu Wang (gfwang) wrote:> Hi: > > I compiled and run tftp-hpa-0.33 on my Solaris 2.7 > but it does not support file size larger than 16MB. > The tftpd time out when 16MB of file is transfered. > > Can anyone offer a hint for how to enable tftp-hpa > to support large file size ? >I have seen this problem on Solaris 7 as well, and it seems to have something to do with ntohs() returning a signed number (which is wrong). You may want to try to compile with -Dntohs='(unsigned short)ntohs' and see what happens. -hpa
I have released tftp-hpa-0.34. The only difference versus 0.33 is some code cleanups, but since those code cleanups seem to fix the problem with Solaris 7 and gcc I figure it is worth a release. ftp://ftp.kernel.org/pub/software/network/tftp/tftp-hpa-0.34.tar.gz -hpa
Peter: Excellent news. release 0.34 fixes the problem. Now I can even get/put a 149MB file. Thank you so much, you are the man. Geefu At 12:01 AM 4/12/2003 -0700, H. Peter Anvin wrote:>I have released tftp-hpa-0.34. The only difference versus 0.33 is some >code cleanups, but since those code cleanups seem to fix the problem with >Solaris 7 and gcc I figure it is worth a release. > >ftp://ftp.kernel.org/pub/software/network/tftp/tftp-hpa-0.34.tar.gz > > -hpa