LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-21-2009, 05:35 AM   #1
ortogonal
LQ Newbie
 
Registered: Jan 2009
Posts: 3

Rep: Reputation: 0
Xinet.d UDP problem


Hi all!

I'm trying to setup a small xinet.d server using UDP

This is my xinet-server in /etc/xinet.d/test
service test
{
socket_type = dgram
protocol = udp
wait = no
user = root
server = /bin/ls
server_args = -l /
log_on_success += USERID
log_on_failure += USERID
disable = no
}

I've added test as port 285 in /etc/services

If I run netstat -l I can see that Xinet.d is binding that port. But when I try to communicate with the server using:
# echo dd | nc -u localhost test
xinet is logging this:
file descriptor of service test has been closed
select reported EBADF but no bad file descriptors were found

If I change wait from no to yes I get nothing :-(
 
Old 01-22-2009, 07:47 AM   #2
rizhun
Member
 
Registered: Jun 2005
Location: England
Distribution: Ubuntu, SLES, AIX
Posts: 268

Rep: Reputation: 47
Hi,

In my experience, naming things as 'test' in a *nix environment can cause unexpected results.

It's a shot in the dark, but try using some other arbitrary name instead of 'test' on the off-chance it fixes your problem!

Last edited by rizhun; 01-22-2009 at 07:49 AM.
 
Old 01-22-2009, 08:20 AM   #3
ortogonal
LQ Newbie
 
Registered: Jan 2009
Posts: 3

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by rizhun View Post
Hi,

In my experience, naming things as 'test' in a *nix environment can cause unexpected results.
Already done that unfortunately. :-(
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Udp bombs and pf tool, prevention of udp floods sarajevo *BSD 1 11-10-2008 02:04 AM
UDP: Short Packets: and UDP bad checksum: entries in dmesg minutes2memories Linux - Networking 2 02-26-2006 08:28 PM
problem with xinet (redirect telnet) blackyzero Linux - Networking 2 09-28-2004 10:32 PM
How to receive UDP and ICMP packets, by one UDP socket(PMTUD) myself_rajat Linux - Networking 0 05-28-2004 06:43 AM
Xinet Administration Graanco Linux - Software 3 08-25-2002 06:06 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:19 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration