Patch for tftp client code

Eric Doenges Eric.Doenges@DynaPel.com
Thu Oct 9 14:32:00 GMT 2003


The enclosed patch prevents tftp_get_client from prematurely ending
transmission without an error if a paket is received out of sequence.
The original code would interpret such a paket as being the legitimate
end of transfer, which IMO is wrong no matter how you read RFC 1350
(which is not terribly clear on how the client should react in such a
case) -- the tftp_get_client function should either return an error, or
simply ignore the paket and wait for the server to send the right paket.
I chose the later approach, which works with the tftp server supplied
with SuSE 8.2 Linux (according to the man page, this is the version by
H. Peter Anvin).
-- 
--------------------------------------------------------------------
|     Eric Doenges              |     DynaPel Laboratories GmbH    |
|     Tel: +49 89 962428 23     |     Fraunhoferstrasse 9/2        |
|     Fax: +49 89 962428 90     |     D - 85737 Ismaning, Germany  |
--------------------------------------------------------------------
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: patch
URL: <http://sourceware.org/pipermail/ecos-patches/attachments/20031009/8bfaf753/attachment.ksh>


More information about the Ecos-patches mailing list