Subject: pkg/10092: thttpd confused by ipv6
To: None <gnats-bugs@gnats.netbsd.org>
From: Wolfgang Rupprecht <wolfgang@wsrcc.com>
List: netbsd-bugs
Date: 05/10/2000 11:20:12
>Number:         10092
>Category:       pkg
>Synopsis:       thttpd gets confused when run on an ipv6 kernel
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed May 10 11:21:00 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator:     Wolfgang Rupprecht
>Release:        netbsd-current May 9, 2000
>Organization:
W S Rupprecht Computer Consulting, Fremont CA
>Environment:
System: NetBSD capsicum.wsrcc.com 1.4X NetBSD 1.4X (WSRCC) #0: Mon Apr 24 09:39:55 PDT 2000 wolfgang@capsicum.wsrcc.com:/v/src/netbsd/NetBSD-current/usr/src/sys/arch/i386/compile/WSRCC i386


>Description:
	A stock thttpd daemon compiled from pkgsrc fails to work under ipv4
	if one tries to run it on an ipv6-capable kernel.

>How-To-Repeat:
	cd /usr/pkgsrc/www/thttpd
	make
	make install
	thttpd
	telnet localhost 80
	<connection refused>

	lsof -c thttpd

	<notice that the thttpd daemon is only listening on the 
	ipv6 port.  *Nothing* is listening on 80/tcp/ipv4

>Fix:
	1) teach thttpd to either open both ipv4 and ipv6 connections
	   (or)
	2) fix the kernel/libraries to prefer ipv4 over ipv6 if the 
	   program ask for "ANY".
	   (I know, this is probably distastful.)
	3) fix thttpd to explicitly request ipv4 connections unless 
	   instructed to use ipv6.
>Release-Note:
>Audit-Trail:
>Unformatted: