Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 24 Jun 2011 03:50:54 +0000 (UTC)
From:      Craig Rodrigues <rodrigc@FreeBSD.org>
To:        cvs-src-old@freebsd.org
Subject:   cvs commit: src/lib/libstand tftp.c
Message-ID:  <201106240351.p5O3p6nb018747@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
rodrigc     2011-06-24 03:50:54 UTC

  FreeBSD src repository

  Modified files:
    lib/libstand         tftp.c 
  Log:
  SVN rev 223488 on 2011-06-24 03:50:54Z by rodrigc
  
  Fixes to newer tftp code in libstand:
   (1) Coding style changes.
   (2) If the server does not acknowledge any blocksize option,
       revert to the default blocksize of 512 bytes.
   (3) Send ACK if the first packet happens to be the last packet.
   (4) Do not accept blocksize greater than what was requested.
   (5) Drop any unwanted OACK received if a tftp transfer is already
       in progress.
   (6) Terminate incomplete transfers with a special no-error ERROR packet.
       Otherwise we rely on the tftp server to time out, which it does
       eventually, after re-sending the last packet several times and spamming
       the system log about it every time.  This idea is borrowed from the
       PXE client, which does exactly that.
  
  Submitted by:  Alexander Kabaev <kan@FreeBSD.org>
  Reviewed and Tested by: Santhanakrishnan Balraj <sbalraj at juniper dot net>
  
  Revision  Changes    Path
  1.21      +132 -51   src/lib/libstand/tftp.c



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201106240351.p5O3p6nb018747>