From robert@fledge.watson.org  Wed Aug  9 21:54:43 2000
Return-Path: <robert@fledge.watson.org>
Received: from fledge.watson.org (fledge.watson.org [204.156.12.50])
	by hub.freebsd.org (Postfix) with ESMTP id 9E42137BA17
	for <FreeBSD-gnats-submit@freebsd.org>; Wed,  9 Aug 2000 21:54:42 -0700 (PDT)
	(envelope-from robert@fledge.watson.org)
Received: (from robert@localhost)
	by fledge.watson.org (8.9.3/8.9.3) id AAA18425;
	Thu, 10 Aug 2000 00:54:37 -0400 (EDT)
	(envelope-from robert)
Message-Id: <200008100454.AAA18425@fledge.watson.org>
Date: Thu, 10 Aug 2000 00:54:37 -0400 (EDT)
From: rwatson@freebsd.org
Sender: robert@fledge.watson.org
Reply-To: rwatson@freebsd.org
To: FreeBSD-gnats-submit@freebsd.org
Subject: rsh (and possibly others) give misleading v4/v6 messages
X-Send-Pr-Version: 3.2

>Number:         20515
>Category:       bin
>Synopsis:       rsh gives misleading IPv4 and IPv6 connection messages
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    ume
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Aug 09 22:00:01 PDT 2000
>Closed-Date:    Thu Aug 10 10:15:00 PDT 2000
>Last-Modified:  Thu Aug 10 10:18:44 PDT 2000
>Originator:     Robert Watson
>Release:        FreeBSD 5.0-CURRENT i386
>Organization:
>Environment:

IPv4 and IPv6 enabled (default)
Disable rsh for both in /etc/inetc.conf

>Description:

Misleading try/fail messages result in operator confusion

% rsh localhost
connect to address 127.0.0.1: Connection refused
Trying ::1...
connect to address 127.0.0.1: Connection refused
Trying ::1...
connect to address 127.0.0.1: Connection refused
Trying ::1...

It appears that both IPv4 and IPv6 are tried, and both fail from
connection refused.  However, the messages are different and confusing.
Should probably read:

Trying 127.0.0.1...
connect to address 127.0.0.1: Connection refused
Trying ::1...
connect to address ::1: Connection refused
...

Also, rsh now appears to retry connecting via the same medium
multiple times (6 times, in this case).  I do not believe it used to
do that, satisfying itself with one connection refused on IPv4 before
giving up.

>How-To-Repeat:

Comment out rsh stuf in inetd.conf
rsh localhost

>Fix:

None available.


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->ume 
Responsible-Changed-By: sheldonh 
Responsible-Changed-When: Thu Aug 10 03:31:27 PDT 2000 
Responsible-Changed-Why:  
Over to an IPv6 maintainer. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=20515 
State-Changed-From-To: open->closed 
State-Changed-By: ume 
State-Changed-When: Thu Aug 10 10:15:00 PDT 2000 
State-Changed-Why:  
I fixed to don't retry via the same medium. (lib/libc/net/rcmd.c 1.29) 
Thank you for your report. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=20515 
>Unformatted:
