[syslinux] tftp-hpa bug on aliased interface and recent kernels.

H. Peter Anvin hpa at zytor.com
Mon Jun 11 15:36:10 PDT 2012


On 06/11/2012 10:58 AM, Jarrod Johnson wrote:
> So as of recent kernels, this change helps:
> http://git.kernel.org/?p=network/tftp/tftp-hpa.git;a=commitdiff;h=c6d2c36b1a2b1986cab7aebb72d120fa118bdfeb
> 
> But there is still a flaw.  Notably, if tftpd is running with AF_UNSPEC (as
> it will if ipv6 support is desired), myrecvfrom will fail to setsockopt to
> get the data back on the first pass.
> 
> I'd guess the least disruptive change to get to be correct would be:

Why AF_UNSPEC for IPv6?  Typically one would just use AF_INET6 and
handle the inbound connections using the ::/96 compatibility addreses,
or did someone break that?

	-hpa




More information about the Syslinux mailing list