[syslinux] [tftp-hpa] [Patch] Bad src address on replies from aliased interfaces

Simon Vallet svallet at genoscope.cns.fr
Thu Feb 16 08:08:00 PST 2006


On Wed, 15 Feb 2006 17:42:32 -0800
"H. Peter Anvin" <hpa at zytor.com> wrote:

> tftp-hpa *is* supposed to report back using the same IP number that it 
> received, so something is screwed up.

I had some time to dig a bit into the problem, and it appears that
there is a typo in recvfrom.c -- this prevented myrecvfrom() to retrieve
the correct IP from the initial request, and it therefore returned a
zeroed myaddr back to main.

The patch fixes this, and the child does get the correct address when
replying to the initial request. But the client still gets a timeout
*on the first connection to the alias* -- subsequent ones are fine.
This is very weird.

Attached is the minimal patch to correct the typo, and a tcpdump output
showing the first tftp request to the alias -- only the alias (.132) is
replying (no more replies from the .129 address), however all it sends
out are ICMP unreachables. Any ideas ?

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: tftp.patch
URL: <http://www.zytor.com/pipermail/syslinux/attachments/20060216/5862b7a4/attachment.ksh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: dump
URL: <http://www.zytor.com/pipermail/syslinux/attachments/20060216/5862b7a4/attachment-0001.ksh>


More information about the Syslinux mailing list