tftpd-hpa How can I set "blksize" option?

Solution 1:

I was able to get this working with xinet.d running the tftp-hpa service.

In the xinetd.d/tftp file, I added --blocksize 1468

service tftp
{

        socket_type             = dgram
        protocol                = udp
        wait                    = yes
        user                    = root
        server                  = /usr/sbin/in.tftpd
        server_args             = -s /tftpfolder --verbose --blocksize 1468
        disable                 = no
        per_source              = 11
        cps                     = 100 2
        flags                   = IPv4
}

After looking at the behavior, clients that do not specify a blocksize option per the RFC will continue to get the default 512 blocksize unfortunately. Clients that do provide the blocksize option can now get up to the maxblocksize option I have set. Mine is set under the fragmentation size, as we are running over WAN, but you can likely use the larger size as long as your clients can request a larger size as well.