problem with xinetd > 2.3.7 and tftpd

This is a discussion on problem with xinetd > 2.3.7 and tftpd within the Linux Networking forums, part of the Linux Forums category; Hi I guess xinetd mailing list is a more appropriate place for my question, but the archive on xinetd site ...


Go Back   Usenet Forums > Linux Forums > Linux Networking

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 05-20-2004
Michael Kaufman
 
Posts: n/a
Default problem with xinetd > 2.3.7 and tftpd

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
  #2 (permalink)  
Old 05-23-2004
Michael Kaufman
 
Posts: n/a
Default Re: problem with xinetd > 2.3.7 and tftpd

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 Search this Thread
Search this Thread:

Advanced Search
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 Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 04:19 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0