git: boot - Handle tftp block overflows

Matthew Dillon dillon at crater.dragonflybsd.org
Thu Nov 1 19:17:13 PDT 2018


commit 6e1b61075c183daad7a38733a38ca960abc3ed0d
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Thu Nov 1 19:06:14 2018 -0700

    boot - Handle tftp block overflows
    
    * Properly truncate the block number when comparing against the
      incoming packet.  TFTP only implements 16-bit block numbers.
      This allows the boot loader to access files larger than 32MB
      via TFTP.
    
    * Twiddle every 256 reads instead of every 16.
    
    * Note that TFTP is not really a suitable protocol for loading the
      kernel because the ELF loader seeks past the debug info which
      can be well over a hundred megabytes in order to get to the syms.
      NFS is preferred.

Summary of changes:
 lib/libstand/tftp.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/6e1b61075c183daad7a38733a38ca960abc3ed0d


-- 
DragonFly BSD source repository



More information about the Commits mailing list