From mark@grondar.za  Thu Nov 16 03:47:55 1995
Received: from grunt.grondar.za (grunt.grondar.za [196.7.18.129])
          by freefall.freebsd.org (8.6.12/8.6.6) with ESMTP id DAA08798
          for <FreeBSD-gnats-submit@freebsd.org>; Thu, 16 Nov 1995 03:47:50 -0800
Received: from grumble.grondar.za (root@grumble.grondar.za [196.7.18.130]) by grunt.grondar.za (8.6.12/8.6.9) with ESMTP id NAA12654 for <FreeBSD-gnats-submit@freebsd.org>; Thu, 16 Nov 1995 13:47:36 +0200
Received: (from mark@localhost) by grumble.grondar.za (8.6.12/8.6.9) id NAA03189; Thu, 16 Nov 1995 13:47:34 +0200
Message-Id: <199511161147.NAA03189@grumble.grondar.za>
Date: Thu, 16 Nov 1995 13:47:34 +0200
From: Mark Murray <mark@grondar.za>
Reply-To: mark@grondar.za
To: FreeBSD-gnats-submit@freebsd.org
Subject: tcpmux listener in inetd does not work
X-Send-Pr-Version: 3.2

>Number:         826
>Category:       bin
>Synopsis:       tcpmux listener in inetd does not work
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          doc-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Nov 16 03:50:03 PST 1995
>Closed-Date:    Mon Apr 13 08:05:20 PDT 1998
>Last-Modified:  Mon Apr 13 08:06:49 PDT 1998
>Originator:     Mark Murray
>Release:        FreeBSD 2.2-CURRENT i386
>Organization:
GTA
>Environment:

2.2-current

>Description:

Trying to get a private daemon going through tcpmux does not work.

>How-To-Repeat:

in /etc/inetd.conf:

tcpmux/+date	stream	tcp	nowait	nobody	/bin/date		date

Then kill -HUP or restart the inetd, then

telnet localhost tcpmux
Trying 127.0.0.1...
telnet: Unable to connect to remote host: Connection refused

netstat -a shows that no listener is listening on port 1.


>Fix:
	
Not sure...

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback 
State-Changed-By: scrappy 
State-Changed-When: Tue Oct 22 14:32:08 PDT 1996 
State-Changed-Why:  

This problem seems to still exist...does anyone know anything 
about tcpmux? 

State-Changed-From-To: feedback->feedback 
State-Changed-By: fenner 
State-Changed-When: Sun Feb 2 10:08:36 PST 1997 
State-Changed-Why:  
It didn't.  darn that edit-pr anyway. 
Responsible-Changed-From-To: freebsd-bugs->mpp 
Responsible-Changed-By: mpp 
Responsible-Changed-When: Fri Feb 21 16:28:58 PST 1997 
Responsible-Changed-Why:  
Giles Lean said that he would supply me with patches to fix this, 
so I'll take responsibility for this PR. 
State-Changed-From-To: feedback->open 
State-Changed-By: phk 
State-Changed-When: Mon Apr 13 01:32:53 PDT 1998 
State-Changed-Why:  
wollman claims to have an stake in this. 


Responsible-Changed-From-To: mpp->wollman 
Responsible-Changed-By: phk 
Responsible-Changed-When: Mon Apr 13 01:32:53 PDT 1998 
Responsible-Changed-Why:  
.. 
State-Changed-From-To: open->closed 
State-Changed-By: wollman 
State-Changed-When: Mon Apr 13 08:05:20 PDT 1998 
State-Changed-Why:  
I fixed the problem by adding additional documentation to describe how 
it was supposed to work. 


Responsible-Changed-From-To: wollman->freebsd-bugs 
Responsible-Changed-By: wollman 
Responsible-Changed-When: Mon Apr 13 08:05:20 PDT 1998 
Responsible-Changed-Why:  
So that the bugs list will get a CC on this change. 
>Unformatted:
From giles@nemeton.com.au  Thu Jan 30 02:32:22 1997
Received: from perki0.connect.com.au (perki0.connect.com.au [192.189.54.85])
          by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id CAA03117
          for <freebsd-gnats-submit@FreeBSD.ORG>; Thu, 30 Jan 1997 02:32:20 -0800 (PST)
Received: from nemeton.UUCP (Unemeton@localhost) by perki0.connect.com.au with UUCP id VAA07930
  (8.7.6h/IDA-1.6); Thu, 30 Jan 1997 21:32:09 +1100 (EST)
Received: from nemeton.com.au (localhost.nemeton.com.au [127.0.0.1])
	by nemeton.com.au (8.8.5/8.8.5) with SMTP id VAA14235;
	Thu, 30 Jan 1997 21:15:15 +1100 (EST)
Message-Id: <32F074B3.41C67EA6@nemeton.com.au>
Date: Thu, 30 Jan 1997 21:15:15 +1100
From: Giles Lean <giles@nemeton.com.au>
Sender: giles@nemeton.com.au
To: freebsd-gnats-submit@FreeBSD.ORG, mark@grondar.za
Cc: giles@nemeton.com.au
Subject: Re: 826/bin: tcpmux listener in inetd does not work

The code is quite incomplete for tcpmux -- the /etc/inetd.conf
file is parsed correctly, but bind() is never called and the data
structure currently used won't work; it regards each tcpmux
service as a separate service (OK) and expects a unique socket
descriptor for each service (BAD).

Obviously this could be fixed by some redesign or even a couple
of flag variables, but it really doesn't seem worth it.

The code that "supports" tcpmux was added for 4.4BSD but apparently
was never properly tested.

The most useful thing I found in investigating this is that the
2.11BSD port of the 4.4BSD code updated the manual page, but the
code still doesn't work.

If some consensus can be arrived at (fix v. disabling it entirely)
my arm could be twisted to update the code.

-- 

Giles Lean             <giles@nemeton.com.au>           +61 3 9480 2118
Nemeton Pty. Ltd.                                   fax +61 3 9480 1771
PGP Key fingerprint =  9F FB 28 37 81 F2 AC F3  8A B0 37 E5 73 CF 39 E7

