Bug 58012

Summary: [patch] tftpd(8) Multihomed tftpd enhancement
Product: Base System Reporter: reinier <reinier>
Component: binAssignee: freebsd-bugs (Nobody) <bugs>
Status: Open ---    
Severity: Affects Only Me CC: reinier
Priority: Normal Keywords: patch
Version: 4.7-RELEASE   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
diff.out.gz none

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...

BMS
Comment 2 Edwin Groothuis freebsd_committer freebsd_triage 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 freebsd_triage 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
Comment 5 Graham Perrin freebsd_committer freebsd_triage 2022-10-17 12:40:44 UTC
Keyword: 

    patch
or  patch-ready

– in lieu of summary line prefix: 

    [patch]

* bulk change for the keyword
* summary lines may be edited manually (not in bulk). 

Keyword descriptions and search interface: 

    <https://bugs.freebsd.org/bugzilla/describekeywords.cgi>