tftp and 32M file limit?

Denys Vlasenko vda.linux at googlemail.com
Mon Oct 27 19:25:01 UTC 2008


On Monday 27 October 2008 10:23, Robert P. J. Day wrote:
> >> BB tftp client supports only 32M files maximum (BB 1.7.2)
> >
> > AFAIK we introduced arbitrary blocksize in recent version of tftp. That way
> > 64K*512b=32M limit is no longer applied.
> 
>    actually, i just took a quick look and BB 1.7.2 appears to support  
> the tftp "blocksize" command, so i'm just guessing my buddy isn't even  
> aware that that option exists, and it would appear to solve his  
> problem without even upgrading.  that *is* the solution to the old 32M  
> tftp limit, right?  just setting a larger transfer blocksize?

You do not have to mess with blocksize. There is no file size limit.

Properly coded client and server wrap around block count.
You can download files of unlimited size.

Example of 701.3M file downloaded:

Server side:

# md5sum Oceans_13.avi
a738aab2db0ab0451a7654822a412ae5  Oceans_13.avi

# ls -l Oceans_13.avi
-rw-rw-rw-    1 root     root    735408128 Mar 27  2008 Oceans_13.avi

# udpsvd -vE 0 69 /usr/srcdevel/bbox/fix/busybox.t3/busybox tftpd -r
udpsvd: listening on 0.0.0.0:69, starting
udpsvd: start 16086 127.0.0.1:69-127.0.0.1:33102
udpsvd: status 1/30
udpsvd: end 16086 exit 0
udpsvd: status 0/30
^Cudpsvd: got signal 2, exit


Client side:

# ./busybox tftp 127.0.0.1 -g -l Oceans_13.avi

# md5sum Oceans_13.avi
a738aab2db0ab0451a7654822a412ae5  Oceans_13.avi

# ls -l Oceans_13.avi
-rw-r--r--    1 root     root    735408128 Oct 27 20:21 Oceans_13.avi


--
vda



More information about the busybox mailing list