Date: Mon, 3 Apr 2000 05:45:13 -0700 (PDT) From: ph.jounin@computer.org To: freebsd-gnats-submit@FreeBSD.org Subject: bin/17772: TFTP can not handle big files (> 32MBytes) Message-ID: <200004031245.FAA14786@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 17772 >Category: bin >Synopsis: TFTP can not handle big files (> 32MBytes) >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Apr 3 05:50:01 PDT 2000 >Closed-Date: >Last-Modified: >Originator: Philippe Jounin >Release: 3.4 >Organization: >Environment: i386 (and others 32-bit hosts) >Description: A big file (more than 32MBytes) can not been downloaded/uploaded whith the current TFTP client. After sending/receiving the segment #65535, TFTP waits for the segment #65536 which can not be produced, since TFTP protocol reserves only 2 bytes for packet number. I have not checked if the TFTP server has the same limitation. >How-To-Repeat: Transfer a big file and use a correct TFTP server. >Fix: The following lines in the file /usr.bin/tftp/tftp.c should include u_short cast : 165, 176, 269, 279 For instance if (ap->th_block == (block-1)) { should be fixed in if (ap->th_block == (u_short) (block-1)) { >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200004031245.FAA14786>