Bug 801308

Summary: tftp doesn't work if flags=IPv6 in xinetd configuration
Product: Red Hat Enterprise Linux 7 Reporter: Miroslav Vadkerti <mvadkert>
Component: tftpAssignee: Jiri Skala <jskala>
Status: CLOSED WORKSFORME QA Contact:
Severity: high Docs Contact:
Priority: high    
Version: 7.0CC: aglotov
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard: gradeA, RHTSdone=/CoreOS/tftp/Regression/bz463618-client-server-ipv6-support
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-03-12 15:12:11 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Miroslav Vadkerti 2012-03-08 09:18:26 UTC
Description of problem:
# cat /etc/xinetd.d/tftp 
service tftp
{
	socket_type		= dgram
	protocol		= udp
	wait			= yes
	user			= root
	server			= /usr/sbin/in.tftpd
	server_args		= -s /var/lib/tftpboot
	disable			= no
	per_source		= 11
	cps			= 100 2
	flags			= IPv6
}

# service xinetd restart

# ls /var/lib/tftpboot
tst

# tftp -6 ::1
tftp> trace on
Packet tracing on.
tftp> verbose on
Verbose mode on.
tftp> get tst
getting from ::1:tst to tst [netascii]
sent RRQ <file=tst, mode=netascii>
sent RRQ <file=tst, mode=netascii>
sent RRQ <file=tst, mode=netascii>
sent RRQ <file=tst, mode=netascii>
sent RRQ <file=tst, mode=netascii>
Transfer timed out.
[transfer will never finish]

Version-Release number of selected component (if applicable):
tftp-server-5.1-1.el7.x86_64
tftp-5.1-1.el7.x86_64

How reproducible:
100%

Steps to Reproduce:
see description
  
Actual results:
Cannot download file with tftp client

Expected results:
No issues downloading file

Additional info:
This worked in RHEL6. The testcase works for both IPv4 and IPv6 if I use flags=IPv4

Comment 1 Jiri Skala 2012-03-12 15:12:11 UTC
I tested the issue on 10.34.25.2 (dhcp-25-173.brq.redhat.com 3.2.1-0.8.el7.x86_64) and it works fine for me.