Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 122119

Summary: netkit-tftp can't use virtual IP
Product: Gentoo Linux Reporter: patrick Marquetecken <patrick.marquetecken>
Component: [OLD] ServerAssignee: Peter Volkov (RETIRED) <pva>
Status: RESOLVED UPSTREAM    
Severity: major    
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description patrick Marquetecken 2006-02-08 06:20:14 UTC
When accessing netkit-tftp on a virtual IP on the server it always give this error:
 tftpd[8316]: tftpd: trying to get file: Can't assign requested address
When using the physical address of the server all goes well.
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2006-02-08 07:34:11 UTC
+ no metadata.xml.
Comment 2 Peter Volkov (RETIRED) gentoo-dev 2007-07-19 12:44:02 UTC
Patric, thank you for report. But it seems to me that this is expected result. See man page for tftpd:

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Unfortunately, on multi-homed systems, it is impossible for tftpd to determine the address on
which a packet was received. As a result, tftpd uses two different mechanisms to guess the
best source address to use for replies. If the socket that inetd(8) passed to tftpd is bound
to a particular address, tftpd uses that address for replies. Otherwise, tftpd uses ``UDP
connect'' to let the kernel choose the reply address based on the destination of the replies
and the routing tables. This means that most setups will work transparently, while in cases
where the reply address must be fixed, the virtual hosting feature of inetd(8) can be used to
ensure that replies go out from the correct address.  These considerations are important,
because most tftp clients will reject reply packets that appear to come from an unexpected
address.
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++

And that means that virtual ip addresses also do not work (as they were never took into account). net-ftp/netkit-tftp provides very simple implementation of tftpd server and if you want something more advanced use net-ftp/tftp-hpa.

resolving as UPSTREAM as I think that this is bad idea for gentoo to support patches for things like that providing that we have alternative servers.