NetBSD Problem Report #33796

From rhialto@falu.nl  Thu Jun 22 22:51:20 2006
Return-Path: <rhialto@falu.nl>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by narn.NetBSD.org (Postfix) with ESMTP id 4DE5A63B8B4
	for <gnats-bugs@gnats.NetBSD.org>; Thu, 22 Jun 2006 22:51:20 +0000 (UTC)
Message-Id: <200606222251.k5MMpGrp004048@radl.falu.nl>
Date: Fri, 23 Jun 2006 00:51:16 +0200 (CEST)
From: Rhialto <rhialto@falu.nl>
Reply-To: rhialto@falu.nl
To: gnats-bugs@NetBSD.org
Subject: inetd should be less fussy with resolved addresses in inetd.conf
X-Send-Pr-Version: 3.95

>Number:         33796
>Category:       bin
>Synopsis:       inetd should be less fussy with resolved addresses in inetd.conf
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    bin-bug-people
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Thu Jun 22 22:55:00 +0000 2006
>Originator:     Rhialto
>Release:        NetBSD 3.0
>Organization:

>Environment:


System: NetBSD radl.falu.nl 3.0 NetBSD 3.0 (Radls Doordringend Onjuiste Akkoord) #0: Sat Jan 28 16:44:07 CET 2006 root@radl.falu.nl:/usr/src/sys/arch/amd64/compile/RADL amd64
Architecture: x86_64
Machine: amd64
>Description:
	In my inetd.conf, I have these lines, among others:

radl.falu.nl:
telnet		stream	tcp	nowait	root	/usr/libexec/telnetd	telnetd -k
telnet		stream	tcp6	nowait	root	/usr/libexec/telnetd	telnetd -k

	radl.falu.nl resolves to multiple addresses, IPv4 and IPv6.
	inetd logs this in syslog:
	Jun 22 23:57:25 radl inetd[207]: telnet/tcp6: radl.falu.nl: resolved to multiple addr
	and then does not bind to them all, only to the IPv4 one.

$ telnet radl.falu.nl
Trying 2222:222:2222::1...
telnet: connect to address 2222:222:2222::1: Connection refused
Trying fe80::222:2222:2222:2222%sk0...
telnet: connect to address fe80::222:2222:2222:2222%sk0: Connection refused
Trying 10.0.0.13...
Connected to radl.falu.nl.
Escape character is '^]'.
Trying SRA secure login:
User (rhialto): 

	I would expect that the telnet/tcp line binds to all tcp4
	addresses and that the telnet/tcp6 line binds to all tcp6
	addresses (which it does not do; it binds to none of them).
	That is what makes most sense (the Principle Of Least
	Astonishment).

>How-To-Repeat:
	Configure dns as above and telnet to the multi-protocolled name.

>Fix:
	Loop over all addresses associated with the name when opening
	listening sockets.

-Olaf.
-- 
___ Olaf 'Rhialto' Seibert      -- You author it, and I'll reader it.
\X/ rhialto/at/xs4all.nl        -- Cetero censeo "authored" delendum esse.

>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.