Networking Forums

Networking Forums > Computer Networking > Linux Networking > problem with xinetd > 2.3.7 and tftpd

Reply
Thread Tools Display Modes

problem with xinetd > 2.3.7 and tftpd

 
 
Michael Kaufman
Guest
Posts: n/a

 
      05-20-2004, 04:15 PM
Hi

I guess xinetd mailing list is a more appropriate place for my
question, but the archive on xinetd site seems to be broken, so I post
here.

I have a problem to get tftp (tftpd server from inetutils package
v1.4.2) service to work with xinetd: first tftp transfer succeeds, but
after that xinetd stops responding to tftp and telnet connections. I
experience this problem with xinetd versions newer than 2.3.7 (2.3.7
works fine, but I don't want to stuck with 2.3.7).

My question is: is it a xinetd bug or there is some confuguration
setting I missed ?

bash-2.05# cat /etc/xinetd.conf
defaults
{
}

service telnet
{
socket_type = stream
protocol = tcp
wait = no
user = root
server = /usr/sbin/in.telnetd
server_args = -h
}

service tftp
{
socket_type = dgram
protocol = udp
wait = yes
user = root
server = /usr/sbin/tftpd
server_args = /
}

This is xinetd 2.3.7 output (one tftp connection made):

bash-2.05# /usr/sbin/xinetd -d
[configuration snipped]
04/5/20@13:53:50: DEBUG: {cnf_start_services} Started service: telnet
04/5/20@13:53:50: DEBUG: {cnf_start_services} Started service: tftp
04/5/20@13:53:51: DEBUG: {cnf_start_services} mask_max = 7,
services_started = 2
04/5/20@13:53:51: NOTICE: {main} xinetd Version 2.3.7 started with no
options co
mpiled in.
04/5/20@13:53:51: NOTICE: {main} Started working: 2 available services
04/5/20@13:53:51: DEBUG: {main_loop} active_services = 2
04/5/20@13:53:54: DEBUG: {main_loop} select returned 1
04/5/20@13:53:54: DEBUG: {svc_suspend} Suspended service tftp
04/5/20@13:53:54: DEBUG: {server_start} Starting service tftp
04/5/20@13:53:54: DEBUG: {main_loop} active_services = 1
04/5/20@13:53:54: DEBUG: {exec_server} duping 7
04/5/20@13:53:54: DEBUG: {main_loop} active_services = 1
04/5/20@13:53:54: DEBUG: {main_loop} select returned 1
04/5/20@13:53:54: DEBUG: {check_pipe} Got signal 17 (Child exited)
04/5/20@13:53:54: DEBUG: {child_exit} waitpid returned = 3697
04/5/20@13:53:54: DEBUG: {server_end} tftp server 3697 exited
04/5/20@13:53:54: INFO: {conn_free} Resuming suspended service
04/5/20@13:53:54: DEBUG: {svc_resume} Resumed service tftp
04/5/20@13:53:54: DEBUG: {child_exit} waitpid returned = -1
04/5/20@13:53:54: DEBUG: {main_loop} active_services = 2

This is xinetd 2.3.13 output (one tftp connection made):
[configuration snipped]
04/5/20@13:54:11: DEBUG: 3707 {cnf_start_services} Started service:
telnet
04/5/20@13:54:11: DEBUG: 3707 {cnf_start_services} Started service:
tftp
04/5/20@13:54:11: DEBUG: 3707 {cnf_start_services} mask_max = 7,
services_starte
d = 2
04/5/20@13:54:12: NOTICE: 3707 {main} xinetd Version 2.3.13 started
with no opti
ons compiled in.
04/5/20@13:54:12: NOTICE: 3707 {main} Started working: 2 available
services
04/5/20@13:54:12: DEBUG: 3707 {main_loop} active_services = 2
04/5/20@13:54:14: DEBUG: 3707 {main_loop} select returned 1
04/5/20@13:54:14: DEBUG: 3707 {svc_suspend} Suspended service tftp
04/5/20@13:54:14: DEBUG: 3707 {server_start} Starting service tftp
04/5/20@13:54:14: DEBUG: 3707 {main_loop} active_services = 1
04/5/20@13:54:14: DEBUG: 3708 {exec_server} duping 7
04/5/20@13:54:14: DEBUG: 3707 {main_loop} active_services = 1
04/5/20@13:54:14: DEBUG: 3707 {main_loop} select returned 1
04/5/20@13:54:14: DEBUG: 3707 {check_pipe} Got signal 17 (Child
exited)
04/5/20@13:54:14: DEBUG: 3707 {child_exit} waitpid returned = 3708
04/5/20@13:54:14: DEBUG: 3707 {server_end} tftp server 3708 exited

Note that 2.3.13 doesn't resume tftp service...

Any help will be greatly appreciated
 
Reply With Quote
 
 
 
 
Michael Kaufman
Guest
Posts: n/a

 
      05-23-2004, 05:38 PM
Actually, the problem appeared in 2.3.13 and I solved it by using gcc
option -fsigned-char to compile the project (I have unsigned char on
my platform).
 
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
wol - tftp -- tftpd: read: Connection refused Werner Ginzky Linux Networking 0 06-17-2005 09:01 AM
xinetd Sigrid Thijs Linux Networking 5 05-14-2005 04:12 AM
trouble with xinetd PenguinsAnonymous@NotaChance.com Linux Networking 2 11-07-2004 01:20 AM
Philosophy of xinetd Google Mike Linux Networking 14 07-27-2004 04:37 PM
tcp wrapper vs xinetd tibo Linux Networking 9 02-11-2004 07:35 PM



1 2 3 4 5 6 7 8 9 10 11