[syslinux] Please help: how to enable tftp-hpa (0.33) for large file

H. Peter Anvin hpa at zytor.com
Fri Apr 11 01:59:43 PDT 2003


H. Peter Anvin wrote:
> 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.
> 

By the way, which compiler are you using?

The Solaris 7 system I have access to has a compiler on it labelled "gcc 
version 2.95 19990718 (prerelease)", and I have found several other bugs 
in it already.

	-hpa



More information about the Syslinux mailing list