[syslinux] tftpd-hpa without tsize option

Geert Stappers stappers at stappers.nl
Mon Jun 1 03:09:52 PDT 2009


Op 20090530 om 13:03 schreef H. Peter Anvin:
> Philippe Auphelle wrote:
> > pxelinux sends tsize followed by blocksize, tsize is not recognized
> > and the TFTP server ignores the options and replies with the data
> > packet as RFC 2347 "TFTP option Extension" allows: "If a server
> > implementation does not support option negotiation, it will likely
> > ignore any option appended to the client's request. In this case, the
> > server will return a DATA packet for a Read Request transfer (...)
> > establishing normal data transfer."
> > And the client must be designed to handle this behavior.
> > In other words, RFC 2347 "TFTP option Extension" explicitly states
> > that the handling of options in TFTP is, well... optional.
> > 
> > Which gets us back to the initial problem, i.e. pxelinux crashing when
> > it received the first TFTP data packet...
> > 
> 
> For what it's worth,
> I just tested pxelinux 3.81 with tftp-hpa and all options disabled.

How to disable options for tftpd-hpa?

I'm asking because I couldn't find '#define option_foo' stuff
in git clone git://git.kernel.org/pub/scm/network/tftp/tftp-hpa.git

> Wireshark confirms that it sends DATA from the start. It works fine.
> 
> That code was at all modified between 3.80 and 3.81, so there is
> something else fishy.


The hunt is allready open ...



Stappers




More information about the Syslinux mailing list