Bug 58012 - [patch] tftpd(8) Multihomed tftpd enhancement
Summary: [patch] tftpd(8) Multihomed tftpd enhancement
Status: Open
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: 4.7-RELEASE
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-bugs (Nobody)
Depends on:
Reported: 2003-10-14 15:50 UTC by reinier
Modified: 2017-12-31 22:37 UTC (History)
1 user (show)

See Also:

diff.out.gz (2.23 KB, text/plain)
2003-10-14 15:50 UTC, reinier
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description reinier 2003-10-14 15:50:20 UTC
	tftpd confuses clients on multihomed hosts:
	When the tftpd receives a connection from the client it answers on a new
	connection. This connection is bound to INADDR_ANY. On a multihomed host
	the routing may select another interface closer to the client as its source
	IP address. This confuses the client (they are trivial afterall!) because
	it may think the reply is coming from another host.
	This enhancement extracts the original destination IP address on a multihomed
	host from the first arriving packet, and uses that as the ip address to bind
	the new connection to.

Fix: Patch /usr/src/libexec/tftpd.c with this diff -u: (diff.out.gz.uue)
How-To-Repeat: 	Connect from a tftp client to the IP address of an interface on the server
	host that is not the closest one to the client. The return connection will
	have the IP address of the closer interface.
	You can watch this with tcpdump.
Comment 1 Bruce M Simpson 2004-06-23 02:08:34 UTC
The patch attached to the PR is horrid and needs much improvement.
Off to look at something else...

Comment 2 Edwin Groothuis freebsd_committer 2007-10-08 10:08:44 UTC
Responsible Changed
From-To: freebsd-bugs->edwin

I'll take TFTP PRs
Comment 3 Edwin Groothuis freebsd_committer 2008-02-14 10:27:36 UTC
Responsible Changed
From-To: edwin->freebsd-bugs

Give back into the pool until later.
Comment 4 Eitan Adler freebsd_committer freebsd_triage 2017-12-31 07:59:58 UTC
For bugs matching the following criteria:

Status: In Progress Changed: (is less than) 2014-06-01

Reset to default assignee and clear in-progress tags.

Mail being skipped