From owner-freebsd-bugs Mon Apr 3 5:50:10 2000 Delivered-To: freebsd-bugs@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id DD48B37BF0D for ; Mon, 3 Apr 2000 05:50:03 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id FAA15244; Mon, 3 Apr 2000 05:50:02 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id BD97B37BDDA for ; Mon, 3 Apr 2000 05:45:14 -0700 (PDT) (envelope-from nobody@FreeBSD.org) Received: (from nobody@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id FAA14786; Mon, 3 Apr 2000 05:45:13 -0700 (PDT) (envelope-from nobody@FreeBSD.org) Message-Id: <200004031245.FAA14786@freefall.freebsd.org> Date: Mon, 3 Apr 2000 05:45:13 -0700 (PDT) From: ph.jounin@computer.org To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-1.0 Subject: bin/17772: TFTP can not handle big files (> 32MBytes) Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >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