Subject: pkg/10092: thttpd confused by ipv6
To: None <>
From: Wolfgang Rupprecht <>
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
>Originator:     Wolfgang Rupprecht
>Release:        netbsd-current May 9, 2000
W S Rupprecht Computer Consulting, Fremont CA
System: NetBSD 1.4X NetBSD 1.4X (WSRCC) #0: Mon Apr 24 09:39:55 PDT 2000 i386

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

	cd /usr/pkgsrc/www/thttpd
	make install
	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

	1) teach thttpd to either open both ipv4 and ipv6 connections
	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.