bin/178055: tftp / tftpd file transfer ends up with incorrect size
rsitze at gmail.com
Mon Apr 22 17:20:00 UTC 2013
>Synopsis: tftp / tftpd file transfer ends up with incorrect size
>Arrival-Date: Mon Apr 22 17:20:00 UTC 2013
FreeBSD graphene 9.1-RELEASE FreeBSD 9.1-RELEASE #2: Tue Nov 27 03:06:52 UTC 2012 root at darkstar:/usr/obj/pcbsd-build90/fbsd-source/9.1/sys/GENERIC i386
On transferring large files tftp / tftpd combo fails to transfer correct file;
file is truncated on my checks.
Use of '/dev/zero' to populate a "bigfile" created a situation that did not exhibit the problem. Use of '/dev/random' to populate a "bigfile" led to situation that did exhibit problem on 2 out of 2 attempts.
When I replaced "/usr/libexec/tftpd" with the ports tftp-hpa "/usr/local/libexec/in.tftpd" did resolve the file transfer issue.
I'll note that using the "hpa" version led to some confusion with the tftp client: I was forced to disable "options" to allow the tftp client to work - which seemed a bit off to me.
setup server side:
* enable tftpd in /etc/inetd.conf
> cd /tftpboot
> dd if=/dev/random of=bigfile bs=21504 count=10000
on same system:
> cd /tmp
> tftp localhost
> get bigfile
> ls -l bigfile
More information about the freebsd-bugs